Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
controllerContext
Type: System.Web.Http.Controllers.HttpControllerContextThe current context for a test controller.
cancellationToken
Type: System.Threading.CancellationTokenThe notification that cancels the operation.
Return Value
Type: System.Threading.Tasks.Task<HttpResponseMessage>
The controller.