Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ExecuteAsync Method
Collapse the table of content
Expand the table of content

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)

public override Task<Object> ExecuteAsync(
	HttpControllerContext controllerContext,
	IDictionary<string, Object> arguments,
	CancellationToken cancellationToken
)

Parameters

controllerContext
Type: System.Web.Http.Controllers.HttpControllerContext

The context.

arguments
Type: System.Collections.Generic.IDictionary<String, Object>

The arguments.

cancellationToken
Type: System.Threading.CancellationToken

A 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.
Show:
© 2015 Microsoft