Partager via


MvcHandler.BeginProcessRequest Method (HttpContextBase, AsyncCallback, Object)

Called by ASP.NET to begin asynchronous request processing using the base HTTP context.

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

Syntax

'Declaration
Protected Friend Overridable Function BeginProcessRequest ( _
    httpContext As HttpContextBase, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
protected internal virtual IAsyncResult BeginProcessRequest(
    HttpContextBase httpContext,
    AsyncCallback callback,
    Object state
)
protected public:
virtual IAsyncResult^ BeginProcessRequest(
    HttpContextBase^ httpContext, 
    AsyncCallback^ callback, 
    Object^ state
)

Parameters

  • state
    Type: System.Object
    The state of the asynchronous object.

Return Value

Type: System.IAsyncResult
The status of the asynchronous call.

Remarks

If the controller that handles the request is not asynchronous, the request is processed synchronously.

For more information about the differences between this method and MvcHttpHandler.BeginProcessRequest(HttpContext, AsyncCallback, Object), see the "Remarks" section of the MvcHandler class overview.

See Also

Reference

MvcHandler Class

BeginProcessRequest Overload

System.Web.Mvc Namespace