PowerTCP Mail for .NET
Read(Int32) Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > SegmentedStream Class > Read Method : Read(Int32) Method




maxLength
The maximum length of the string returned.
Read data from the stream into a string.

Syntax

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)
C# 
public string Read( 
   int maxLength
)
Managed Extensions for C++ 
public: string* Read( 
   int maxLength
) 
C++/CLI 
public:
String^ Read( 
   int maxLength
) 

Parameters

maxLength
The maximum length of the string returned.

Return Value

A string value representing the data read from the stream.

Exceptions

ExceptionDescription
System.IO.IOExceptionThrown when the stream is not Readable.

Remarks

This method reads data from the stream until at least 1 byte has been read or the end of the stream has been reached.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.