DefaultHttpHandler.BeginProcessRequest Method (HttpContext, AsyncCallback, Object)

 

Initiates an asynchronous call to the HTTP handler.

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

abstract BeginProcessRequest : 
        context:HttpContext *
        callback:AsyncCallback *
        state:Object -> IAsyncResult
override BeginProcessRequest : 
        context:HttpContext *
        callback:AsyncCallback *
        state:Object -> IAsyncResult

Parameters

context
Type: System.Web.HttpContext

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

callback
Type: System.AsyncCallback

The method to call when the asynchronous method call is complete. If callback is null, the delegate is not called.

state
Type: System.Object

Any state data that is needed to process the request.

Return Value

Type: System.IAsyncResult

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

Exception Condition
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.

.NET Framework
Available since 2.0
Return to top
Show: