ModelBinderParameterBinding.ExecuteBindingAsync Method (ModelMetadataProvider, HttpActionContext, CancellationToken)
Asynchronously executes the parameter binding via the model binder.
Namespace: System.Web.Http.ModelBinding
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
public override Task ExecuteBindingAsync(
ModelMetadataProvider metadataProvider,
HttpActionContext actionContext,
CancellationToken cancellationToken
)
public:
virtual Task^ ExecuteBindingAsync(
ModelMetadataProvider^ metadataProvider,
HttpActionContext^ actionContext,
CancellationToken cancellationToken
) override
override ExecuteBindingAsync :
metadataProvider:ModelMetadataProvider *
actionContext:HttpActionContext *
cancellationToken:CancellationToken -> Task
Public Overrides Function ExecuteBindingAsync (
metadataProvider As ModelMetadataProvider,
actionContext As HttpActionContext,
cancellationToken As CancellationToken
) As Task
Parameters
metadataProvider
Type: System.Web.Http.Metadata.ModelMetadataProviderThe metadata provider to use for validation.
actionContext
Type: System.Web.Http.Controllers.HttpActionContextThe action context for the binding.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token assigned for this task for cancelling the binding operation.
Return Value
Type: System.Threading.Tasks.Task
The task that is signaled when the binding is complete.
See Also
ModelBinderParameterBinding Class
System.Web.Http.ModelBinding Namespace
Return to top