HttpWorkerRequest.BeginRead 方法

定義

開始對請求實體實體進行非同步讀取操作。

public:
 virtual IAsyncResult ^ BeginRead(cli::array <System::Byte> ^ buffer, int offset, int count, AsyncCallback ^ callback, System::Object ^ state);
public virtual IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state);
abstract member BeginRead : byte[] * int * int * AsyncCallback * obj -> IAsyncResult
override this.BeginRead : byte[] * int * int * AsyncCallback * obj -> IAsyncResult
Public Overridable Function BeginRead (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

一個使用者提供的物件,用來區分此特定非同步讀取與其他請求。

傳回

適用於