ReflectedHttpActionDescriptor.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 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

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.

See Also

Reference

ReflectedHttpActionDescriptor Class

System.Web.Http.Controllers Namespace