HttpWorkerRequest::BeginRead Method (array<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(
	array<unsigned char>^ buffer,
	int offset,
	int count,
	AsyncCallback^ callback,
	Object^ state
)

Parameters

buffer
Type: array<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: