HttpWorkerRequest.BeginRead Method (Byte[], Int32, Int32, AsyncCallback, Object)
.NET Framework (current version)
Begins an asynchronous read operation of the request entity body.
Assembly: System.Web (in System.Web.dll)
public virtual IAsyncResult BeginRead( byte[] buffer, int offset, int count, AsyncCallback callback, object state )
Parameters
- buffer
-
Type:
System.Byte[]
The buffer to read the data into.
- offset
-
Type:
System.Int32
The byte offset in the buffer at which to begin writing data.
- count
-
Type:
System.Int32
The maximum number of bytes to read.
- callback
-
Type:
System.AsyncCallback
The method to call when a corresponding asynchronous operation completes.
- state
-
Type:
System.Object
A user-provided object that distinguishes this particular asynchronous read from other requests.
Return Value
Type: System.IAsyncResult
.NET Framework
Available since 4.5
Available since 4.5
Show: