IHttpActionResult.ExecuteAsync Method (CancellationToken)
Creates an HttpResponseMessage asynchronously.
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
Task<HttpResponseMessage> ExecuteAsync(
CancellationToken cancellationToken
)
Task<HttpResponseMessage^>^ ExecuteAsync(
CancellationToken cancellationToken
)
abstract ExecuteAsync :
cancellationToken:CancellationToken -> Task<HttpResponseMessage>
Function ExecuteAsync (
cancellationToken As CancellationToken
) As Task(Of HttpResponseMessage)
Parameters
cancellationToken
Type: System.Threading.CancellationTokenThe token to monitor for cancellation requests.
Return Value
Type: System.Threading.Tasks.Task<HttpResponseMessage>
A task that, when completed, contains the HttpResponseMessage.
See Also
IHttpActionResult Interface
System.Web.Http Namespace
Return to top