HttpWorkerRequest.BeginRead Method

Definition

Begins an asynchronous read operation of the request entity body.

C#
public virtual IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state);

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

Produkt Verzie
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1