| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As SegmentedStream Dim buffer As String instance.Write(buffer) | |
Parameters
- buffer
- The storage location of the data to be sent.
| Exception | Description |
|---|---|
| System.IO.IOException | Thrown when the stream is not Writeable. |
This method writes a string to the stream and returns from complete. Since this method writes a string (doing a byte array conversion behind-the-scenes using the Object.Charset to convert unicode characters to bytes) to the stream, it is useful for such purposes as sending protocol commands to a server.
Use the CanWrite property to determine whether the current instance supports writing.
Target Platforms: Microsoft .NET Framework 2.0