System.Web.DefaultHttpHandler.BeginProcessRequest Method

Initiates an asynchronous call to the HTTP handler.

Syntax

public virtual IAsyncResult BeginProcessRequest (HttpContext context, AsyncCallback callback, object state)

Parameters

context
An object that provides references to intrinsic server objects that are used to service HTTP requests.
callback
The method to call when the asynchronous method call is complete. If callback is null, the delegate is not called.
state
Any state data that is needed to process the request.

Returns

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

Remarks

When creating an HTTP handler for asynchronous use, your handler must implement the asynchronous DefaultHttpHandler.BeginProcessRequest(HttpContext, AsyncCallback, object) and DefaultHttpHandler.EndProcessRequest(IAsyncResult) methods that are called asynchronously by ASP.NET.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0