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.BeginWrite

Begins an asynchronous write to a stream.

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

Parameters

sendBuffer
The data to send to the stream.
index
[To be supplied.]
size
[To be supplied.]
callback
[To be supplied.]
state
[To be supplied.]

Return Value

The handle to the asychronous call.

See Also

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