LumiSoft Mail Server User API
BeginReadSpecifiedLength Method (stream, lengthToRead, tag, callback)
Namespaces > LumiSoft.Net > SocketEx > BeginReadSpecifiedLength(Stream, Int32, Object, SocketCallBack)
Begins reading specified amount of data from socket asynchronously.
Syntax
C#Visual BasicManaged C++
public void BeginReadSpecifiedLength (
	Stream stream,
	int lengthToRead,
	Object tag,
	SocketCallBack callback
)
Public Sub BeginReadSpecifiedLength ( _
	stream As Stream, _
	lengthToRead As Integer, _
	tag As Object, _
	callback As SocketCallBack _
)
public:
void BeginReadSpecifiedLength (
	Stream^ stream, 
	int lengthToRead, 
	Object^ tag, 
	SocketCallBack^ callback
)
Parameters
stream (Stream)
Stream where to store readed data.
lengthToRead (Int32)
Specifies number of bytes to read from socket.
tag (Object)
User data.
callback (SocketCallBack)
The method to be called when the asynchronous read operation is completed.

Assembly: LumiSoft.Net Version: 2.0.2636.18419 (Module: LumiSoft.Net)