HttpWorkerRequest.BeginRead 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
開始對請求實體實體進行非同步讀取操作。
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
一個使用者提供的物件,用來區分此特定非同步讀取與其他請求。