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

要在對應之非同步 (Asynchronous) 作業完成時呼叫的方法。

state
Object

使用者所提供的物件,其可以從其他要求中區分出這個特定非同步讀取。

傳回

適用於