DefaultHttpHandler::BeginProcessRequest Method
Initiates an asynchronous call to the HTTP handler.
Assembly: System.Web (in System.Web.dll)
public: virtual IAsyncResult^ BeginProcessRequest( HttpContext^ context, AsyncCallback^ callback, Object^ state )
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 nullptr, 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.
Implements
IHttpAsyncHandler::BeginProcessRequest(HttpContext, AsyncCallback, Object)| 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.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.