DefaultHttpHandler.BeginProcessRequest Method

Note: This method is new in the .NET Framework version 2.0.

Initiates an asynchronous call to the HTTP handler.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

public:
virtual IAsyncResult^ BeginProcessRequest (
	HttpContext^ context, 
	AsyncCallback^ callback, 
	Object^ state
)
public IAsyncResult BeginProcessRequest (
	HttpContext context, 
	AsyncCallback callback, 
	Object state
)
public function BeginProcessRequest (
	context : HttpContext, 
	callback : AsyncCallback, 
	state : Object
) : IAsyncResult

Parameters

context

An HttpContext that provides references to intrinsic server objects used to service HTTP requests.

callback

The AsyncCallback to call when the asynchronous method call is complete. If callback is a null reference (Nothing in Visual Basic), the delegate is not called.

state

Any state data needed to process the request.

Return Value

An IAsyncResult that contains information about the status of the process.

Exception typeCondition

HttpException

The preconditions for processing a request fail and either the requested file has the suffix .asp or the request was sent through POST.

When creating an HTTP handler for asynchronous use, your handler must implement the asynchronous BeginProcessRequest and EndProcessRequest methods that are called asynchronously by ASP.NET.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: