NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

NetworkStream.BeginRead

Begins an asychronous read from a stream.

[Visual Basic]
Overrides Public Function BeginRead( _
   ByVal readBuffer() As Byte, _
   ByVal index As Integer, _
   ByVal size As Integer, _
   ByVal callback As AsyncCallback, _
   ByVal state As Object _
) As IAsyncResult
[C#]
public override IAsyncResult BeginRead(
   byte[] readBuffer,
   int index,
   int size,
   AsyncCallback callback,
   object state
);
[C++]
public: override IAsyncResult* BeginRead(
   unsigned char* readBuffer[],
   int index,
   int size,
   AsyncCallback* callback,
   Object* state
);
[JScript]
public override function BeginRead(
   readBuffer : Byte[],
   index : int,
   size : int,
   callback : AsyncCallback,
   state : Object
) : IAsyncResult;

Parameters

readBuffer
The location to store the data read from the stream.
index
[To be supplied.]
size
[To be supplied.]
callback
[To be supplied.]
state
[To be supplied.]

Return Value

A handle to the asynchronous call.

See Also

NetworkStream Class | NetworkStream Members | System.Net.Sockets Namespace