BeginRead Method
TOC
Collapse the table of content
Expand the table of content

HttpWorkerRequest.BeginRead Method (Byte[], Int32, Int32, AsyncCallback, Object)

.NET Framework (current version)
 

Begins an asynchronous read operation of the request entity body.

Namespace:   System.Web
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
Return to top
Show:
© 2016 Microsoft