Bewerken

Delen via


PrintQueueStream.BeginWrite Method

Definition

Begins an asynchronous write operation.

public:
 override IAsyncResult ^ BeginWrite(cli::array <System::Byte> ^ buffer, int offset, int count, AsyncCallback ^ callback, System::Object ^ state);
public override IAsyncResult BeginWrite (byte[] buffer, int offset, int count, AsyncCallback callback, object state);
override this.BeginWrite : byte[] * int * int * AsyncCallback * obj -> IAsyncResult
Public Overrides Function BeginWrite (buffer As Byte(), offset As Integer, count As Integer, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

buffer
Byte[]

The buffer from which to write data.

offset
Int32

The byte offset in the buffer from which to begin writing.

count
Int32

The maximum number of bytes to write.

callback
AsyncCallback

An asynchronous callback, which is called when the writing operation is complete.

state
Object

A user-provided object that distinguishes this asynchronous writing request from other requests.

Returns

An IAsyncResult that represents the asynchronous write, which might still be pending.

Applies to