| Visual Basic (Declaration) | |
|---|---|
Public Overloads Function Read( _ ByVal maxLength As Integer _ ) As String | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As SegmentedStream Dim maxLength As Integer Dim value As String value = instance.Read(maxLength) | |
Parameters
- maxLength
- The maximum length of the string returned.
Return Value
A string value representing the data read from the stream.| Exception | Description |
|---|---|
| System.IO.IOException | Thrown when the stream is not Readable. |
This method reads data from the stream until at least 1 byte has been read or the end of the stream has been reached.
Target Platforms: Microsoft .NET Framework 2.0