Partager via


IHttpController.ExecuteAsync Method

Executes the controller for synchronization.

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

Syntax

'Declaration
Function ExecuteAsync ( _
    controllerContext As HttpControllerContext, _
    cancellationToken As CancellationToken _
) As Task(Of HttpResponseMessage)
'Usage
Dim instance As IHttpController 
Dim controllerContext As HttpControllerContext 
Dim cancellationToken As CancellationToken 
Dim returnValue As Task(Of HttpResponseMessage)

returnValue = instance.ExecuteAsync(controllerContext, _
    cancellationToken)
Task<HttpResponseMessage> ExecuteAsync(
    HttpControllerContext controllerContext,
    CancellationToken cancellationToken
)
Task<HttpResponseMessage^>^ ExecuteAsync(
    HttpControllerContext^ controllerContext, 
    CancellationToken cancellationToken
)
abstract ExecuteAsync : 
        controllerContext:HttpControllerContext * 
        cancellationToken:CancellationToken -> Task<HttpResponseMessage> 
function ExecuteAsync(
    controllerContext : HttpControllerContext, 
    cancellationToken : CancellationToken
) : Task<HttpResponseMessage>

Parameters

Return Value

Type: System.Threading.Tasks.Task<HttpResponseMessage>
The controller.

See Also

Reference

IHttpController Interface

System.Web.Http.Controllers Namespace