PowerTCP Telnet for .NET CF
Read(String) Method
See Also  Send comments on this topic.
Dart.Common Namespace > TcpBase Class > Read Method : Read(String) Method




delimiter
A delimiter string to search for. If null, the socket is read until a timeout occurs or the server closes the connection.
Receives data until a delimiter is found.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Read( _
   ByVal delimiter As String _
) As Data
Visual Basic (Usage)Copy Code
Dim instance As TcpBase
Dim delimiter As String
Dim value As Data
 
value = instance.Read(delimiter)
C# 
public Data Read( 
   string delimiter
)
Managed Extensions for C++ 
public: Data* Read( 
   string* delimiter
) 
C++/CLI 
public:
Data^ Read( 
   String^ delimiter
) 

Parameters

delimiter
A delimiter string to search for. If null, the socket is read until a timeout occurs or the server closes the connection.

Return Value

A Data object encapsulating the received data.

Remarks

This method blocks until the delimiter is found, the timeout period expires, or the server closes the connection. If the method times out, all received data will be returned, and an exception will NOT be thrown. Instead, the returned Data.Delimiter will be null, indicating the delimiter was not found.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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