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)
Syntax
'Declaration
Public MustOverride Function ExecuteBindingAsync ( _
metadataProvider As ModelMetadataProvider, _
actionContext As HttpActionContext, _
cancellationToken As CancellationToken _
) As Task
'Usage
Dim instance As HttpParameterBinding
Dim metadataProvider As ModelMetadataProvider
Dim actionContext As HttpActionContext
Dim cancellationToken As CancellationToken
Dim returnValue As Task
returnValue = instance.ExecuteBindingAsync(metadataProvider, _
actionContext, cancellationToken)
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 abstract function ExecuteBindingAsync(
metadataProvider : ModelMetadataProvider,
actionContext : HttpActionContext,
cancellationToken : CancellationToken
) : 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.
Remarks
Before calling this method, check that the IsValid property is true.