HttpActionDescriptor.ExecuteAsync Method
Executes the described action and returns a Task<TResult> that once completed will contain the return value of the action.
Namespace: System.Web.Http.Controllers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public MustOverride Function ExecuteAsync ( _
controllerContext As HttpControllerContext, _
arguments As IDictionary(Of String, Object), _
cancellationToken As CancellationToken _
) As Task(Of Object)
'Usage
Dim instance As HttpActionDescriptor
Dim controllerContext As HttpControllerContext
Dim arguments As IDictionary(Of String, Object)
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of Object)
returnValue = instance.ExecuteAsync(controllerContext, _
arguments, cancellationToken)
public abstract Task<Object> ExecuteAsync(
HttpControllerContext controllerContext,
IDictionary<string, Object> arguments,
CancellationToken cancellationToken
)
public:
virtual Task<Object^>^ ExecuteAsync(
HttpControllerContext^ controllerContext,
IDictionary<String^, Object^>^ arguments,
CancellationToken cancellationToken
) abstract
abstract ExecuteAsync :
controllerContext:HttpControllerContext *
arguments:IDictionary<string, Object> *
cancellationToken:CancellationToken -> Task<Object>
public abstract function ExecuteAsync(
controllerContext : HttpControllerContext,
arguments : IDictionary<String, Object>,
cancellationToken : CancellationToken
) : Task<Object>
Parameters
controllerContext
Type: System.Web.Http.Controllers.HttpControllerContextThe controller context.
arguments
Type: System.Collections.Generic.IDictionary<String, Object>A list of arguments.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token.
Return Value
Type: System.Threading.Tasks.Task<Object>
A Task<TResult> that once completed will contain the return value of the action.