HttpParameterBinding.ExecuteBindingAsync Method (ModelMetadataProvider, HttpActionContext, CancellationToken)
Asynchronously executes the binding for the given request.
Namespace: System.Web.Http.Controllers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
public abstract Task ExecuteBindingAsync(
ModelMetadataProvider metadataProvider,
HttpActionContext actionContext,
CancellationToken cancellationToken
)
public:
virtual Task^ ExecuteBindingAsync(
ModelMetadataProvider^ metadataProvider,
HttpActionContext^ actionContext,
CancellationToken cancellationToken
) abstract
abstract ExecuteBindingAsync :
metadataProvider:ModelMetadataProvider *
actionContext:HttpActionContext *
cancellationToken:CancellationToken -> Task
Public MustOverride Function ExecuteBindingAsync (
metadataProvider As ModelMetadataProvider,
actionContext As HttpActionContext,
cancellationToken As CancellationToken
) As Task
Parameters
metadataProvider
Type: System.Web.Http.Metadata.ModelMetadataProviderMetadata provider to use for validation.
actionContext
Type: System.Web.Http.Controllers.HttpActionContextThe action context for the binding. The action context contains the parameter dictionary that will get populated with the parameter.
cancellationToken
Type: System.Threading.CancellationTokenCancellation token for cancelling the binding operation.
Return Value
Type: System.Threading.Tasks.Task
A task object representing the asynchronous operation.
See Also
HttpParameterBinding Class
System.Web.Http.Controllers Namespace
Return to top