Edit

Bagikan melalui


HttpWorkerRequest.BeginRead Method

Definition

Begins an asynchronous read operation of the request entity body.

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

Parameters

buffer
Byte[]

The buffer to read the data into.

offset
Int32

The byte offset in the buffer at which to begin writing data.

count
Int32

The maximum number of bytes to read.

callback
AsyncCallback

The method to call when a corresponding asynchronous operation completes.

state
Object

A user-provided object that distinguishes this particular asynchronous read from other requests.

Returns

Applies to