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!

FileStream.BeginWrite

Begins an asynchronous write.

[Visual Basic]
Overrides Public Function BeginWrite( _
   ByVal array() As Byte, _
   ByVal offset As Integer, _
   ByVal numBytes As Integer, _
   ByVal cb As AsyncCallback, _
   ByVal stateObject As Object _
) As IAsyncResult
[C#]
public override IAsyncResult BeginWrite(
   byte[] array,
   int offset,
   int numBytes,
   AsyncCallback cb,
   object stateObject
);
[C++]
public: override IAsyncResult* BeginWrite(
   unsigned char* array[],
   int offset,
   int numBytes,
   AsyncCallback* cb,
   Object* stateObject
);
[JScript]
public override function BeginWrite(
   array : Byte[],
   offset : int,
   numBytes : int,
   cb : AsyncCallback,
   stateObject : Object
) : IAsyncResult;

Parameters

array
The buffer to write data to.
offset
The byte offset in b at which to begin writing.
numBytes
The maximum number of bytes to write.
cb
The AsyncCallback.
stateObject
The state object

Return Value

Returns an IAsyncResult that references the asynchronous write.

See Also

FileStream Class | FileStream Members | System.IO Namespace