JsonResult<T>.ExecuteAsync Method (CancellationToken)
Creates a response message asynchronously.
Namespace: System.Web.Http.Results
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
public virtual Task<HttpResponseMessage> ExecuteAsync(
CancellationToken cancellationToken
)
public:
virtual Task<HttpResponseMessage^>^ ExecuteAsync(
CancellationToken cancellationToken
)
abstract ExecuteAsync :
cancellationToken:CancellationToken -> Task<HttpResponseMessage>
override ExecuteAsync :
cancellationToken:CancellationToken -> Task<HttpResponseMessage>
Public Overridable 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 response message.
Implements
IHttpActionResult.ExecuteAsync(CancellationToken)
See Also
JsonResult<T> Class
System.Web.Http.Results Namespace
Return to top