See Also

SegmentedStream Class  | SegmentedStream Members  | Overload List

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

C++

C++/CLI

Show All

maxLength
The maximum length of the string returned.
See Also Languages PowerTCP SSL Sockets for .NET

Read(Int32) Method

Dart.PowerTCP.SslSockets Namespace > SegmentedStream Class > Read Method : Read(Int32) Method

Read data from the stream into a string.

[Visual Basic]
Overloads Public Function Read( _    ByVal maxLength As Integer _ ) As String
[C#]
public string Read(    int maxLength );
[C++]
public: string* Read(    int maxLength )
[C++/CLI]
public: String^ Read(    int maxLength )

Parameters

maxLength
The maximum length of the string returned.

Return Type

A string value representing the data read from the stream.

Exceptions

ExceptionDescription
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

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SegmentedStream Class  | SegmentedStream Members  | Overload List


Send comments on this topic.

Documentation version 1.1.2.0.

© 2008 Dart Communications.  All rights reserved.