DefaultHttpHandler.BeginProcessRequest Method (HttpContext, AsyncCallback, Object)
.NET Framework (current version)
Initiates an asynchronous call to the HTTP handler.
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.IAsyncResultAn 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
Available since 2.0
Show: