Dart.PowerTCP.SslSockets Namespace > SegmentedStream Class > Read Method : Read() Method |
Read data from the stream into a string.
[Visual Basic]
Overloads Public Function Read() As String
[C#]
public string Read();
[C++]
public: string* Read();
[C++/CLI]
public:
String^ Read();
A string containing the data read from the stream.
Exception | Description |
---|---|
IOException | Thrown when the stream is not Readable. |
ArgumentNullException | Thrown when the receiving buffer is null. |
ArgumentOutOfRangeException | Thrown when the offset is less than zero or when count is less than or equal to zero. |
ArgumentException | Thrown when (offset + count) > buffer.Length. |
This method will block (for ReceiveTimeout) until at least 1 byte is available for reading, or the connection is closed by the server, in which case an empty string is returned. The Charset property is used to convert from bytes to unicode characters, which allows unicode characters to be passed over the network.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
SegmentedStream Class | SegmentedStream Members | Overload List
Send comments on this topic.
Documentation version 1.1.2.0.
© 2008 Dart Communications. All rights reserved.