共用方式為


PrintQueueStream.BeginWrite 方法

定義

開始非同步的寫入作業。

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

參數

buffer
Byte[]

寫入資料的來源緩衝區。

offset
Int32

緩衝區中要開始寫入之處的位元組位移。

count
Int32

寫入的最大位元組數。

callback
AsyncCallback

非同步回呼,會在寫入作業完成時被呼叫。

state
Object

使用者所提供的物件,可從其他要求中辨別這個非同步寫入要求。

傳回

IAsyncResult,代表可能還在擱置中的非同步寫入。

適用於