Stream: BeginWrite

BeginWrite

Begins an Asynchronous writing process.



 Public Function BeginWrite(
	  ByRef Buffer ( ) As Byte,
	  ByVal Offset As Long,
	  ByVal Count As Long,
	  Optional ByVal Callback As AsyncCallback,
	  Optional ByRef State As Variant ) As IAsyncResult

Parameters

Buffer
[ByRef] Byte. The source of the data to write to the stream.
Offset
[ByVal] Long. The position in the buffer to begin writing from.
Count
[ByVal] Long. The number of bytes to be written to the stream.
Callback
[ByVal] Optional. AsyncCallback. An object used to receive notification of the completion for the writing.
State
[ByRef] Optional. Variant. A user-supplied information used to distinguish this from other writings.

Return Values

IAsyncResult -  Represents the current write state.

See Also

Project CorLib Overview

Class Stream Overview