Freigeben über


ModelBinderParameterBinding.ExecuteBindingAsync Method

Asynchronously executes the parameter binding via the model binder.

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

Syntax

'Declaration
Public Overrides Function ExecuteBindingAsync ( _
    metadataProvider As ModelMetadataProvider, _
    actionContext As HttpActionContext, _
    cancellationToken As CancellationToken _
) As Task
'Usage
Dim instance As ModelBinderParameterBinding 
Dim metadataProvider As ModelMetadataProvider 
Dim actionContext As HttpActionContext 
Dim cancellationToken As CancellationToken 
Dim returnValue As Task 

returnValue = instance.ExecuteBindingAsync(metadataProvider, _
    actionContext, cancellationToken)
public override Task ExecuteBindingAsync(
    ModelMetadataProvider metadataProvider,
    HttpActionContext actionContext,
    CancellationToken cancellationToken
)
public:
virtual Task^ ExecuteBindingAsync(
    ModelMetadataProvider^ metadataProvider, 
    HttpActionContext^ actionContext, 
    CancellationToken cancellationToken
) override
abstract ExecuteBindingAsync : 
        metadataProvider:ModelMetadataProvider * 
        actionContext:HttpActionContext * 
        cancellationToken:CancellationToken -> Task  
override ExecuteBindingAsync : 
        metadataProvider:ModelMetadataProvider * 
        actionContext:HttpActionContext * 
        cancellationToken:CancellationToken -> Task
public override function ExecuteBindingAsync(
    metadataProvider : ModelMetadataProvider, 
    actionContext : HttpActionContext, 
    cancellationToken : CancellationToken
) : Task

Parameters

Return Value

Type: System.Threading.Tasks.Task
The task that is signaled when the binding is complete.

See Also

Reference

ModelBinderParameterBinding Class

System.Web.Http.ModelBinding Namespace