Export (0) Print
Expand All

HttpParameterBinding.ExecuteBindingAsync Method

Asynchronously executes the binding for the given request.

Namespace:  System.Web.Http.Controllers
Assembly:  System.Web.Http (in System.Web.Http.dll)

public abstract Task ExecuteBindingAsync(
	ModelMetadataProvider metadataProvider,
	HttpActionContext actionContext,
	CancellationToken cancellationToken
)

Parameters

metadataProvider
Type: System.Web.Http.Metadata.ModelMetadataProvider

Metadata provider to use for validation.

actionContext
Type: System.Web.Http.Controllers.HttpActionContext

The action context for the binding. The action context contains the parameter dictionary that will get populated with the parameter.

cancellationToken
Type: System.Threading.CancellationToken

Cancellation token for cancelling the binding operation.

Return Value

Type: System.Threading.Tasks.Task
A task object representing the asynchronous operation.

Before calling this method, check that the IsValid property is true.

Show:
© 2014 Microsoft