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 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 Overrides Function ExecuteAsync ( _
controllerContext As HttpControllerContext, _
arguments As IDictionary(Of String, Object), _
cancellationToken As CancellationToken _
) As Task(Of Object)
'Usage
Dim instance As ReflectedHttpActionDescriptor
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 override Task<Object> ExecuteAsync(
HttpControllerContext controllerContext,
IDictionary<string, Object> arguments,
CancellationToken cancellationToken
)
public:
virtual Task<Object^>^ ExecuteAsync(
HttpControllerContext^ controllerContext,
IDictionary<String^, Object^>^ arguments,
CancellationToken cancellationToken
) override
abstract ExecuteAsync :
controllerContext:HttpControllerContext *
arguments:IDictionary<string, Object> *
cancellationToken:CancellationToken -> Task<Object>
override ExecuteAsync :
controllerContext:HttpControllerContext *
arguments:IDictionary<string, Object> *
cancellationToken:CancellationToken -> Task<Object>
public override function ExecuteAsync(
controllerContext : HttpControllerContext,
arguments : IDictionary<String, Object>,
cancellationToken : CancellationToken
) : Task<Object>
Parameters
controllerContext
Type: System.Web.Http.Controllers.HttpControllerContextThe context.
arguments
Type: System.Collections.Generic.IDictionary<String, Object>The arguments.
cancellationToken
Type: System.Threading.CancellationTokenA cancellation token to cancel the action.
Return Value
Type: System.Threading.Tasks.Task<Object>
A [T:System.Threading.Tasks.Task`1"] that once completed will contain the return value of the action.