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 Overridable Function BeginRead (
	buffer As Byte(),
	offset As Integer,
	count As Integer,
	callback As AsyncCallback,
	state As Object
) As IAsyncResult

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: