Share via


CompositeValueProvider.CreateAsync Method

Definition

Overloads

CreateAsync(ControllerContext)

Asynchronously creates a CompositeValueProvider using the provided controllerContext.

CreateAsync(ActionContext, IList<IValueProviderFactory>)

Asynchronously creates a CompositeValueProvider using the provided actionContext.

CreateAsync(ControllerContext)

Source:
CompositeValueProvider.cs
Source:
CompositeValueProvider.cs

Asynchronously creates a CompositeValueProvider using the provided controllerContext.

public:
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Mvc::ModelBinding::CompositeValueProvider ^> ^ CreateAsync(Microsoft::AspNetCore::Mvc::ControllerContext ^ controllerContext);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ModelBinding.CompositeValueProvider> CreateAsync (Microsoft.AspNetCore.Mvc.ControllerContext controllerContext);
static member CreateAsync : Microsoft.AspNetCore.Mvc.ControllerContext -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ModelBinding.CompositeValueProvider>
Public Shared Function CreateAsync (controllerContext As ControllerContext) As Task(Of CompositeValueProvider)

Parameters

controllerContext
ControllerContext

The ControllerContext associated with the current request.

Returns

A Task<TResult> which, when completed, asynchronously returns a CompositeValueProvider.

Applies to

CreateAsync(ActionContext, IList<IValueProviderFactory>)

Source:
CompositeValueProvider.cs
Source:
CompositeValueProvider.cs

Asynchronously creates a CompositeValueProvider using the provided actionContext.

public:
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Mvc::ModelBinding::CompositeValueProvider ^> ^ CreateAsync(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, System::Collections::Generic::IList<Microsoft::AspNetCore::Mvc::ModelBinding::IValueProviderFactory ^> ^ factories);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ModelBinding.CompositeValueProvider> CreateAsync (Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ModelBinding.IValueProviderFactory> factories);
static member CreateAsync : Microsoft.AspNetCore.Mvc.ActionContext * System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ModelBinding.IValueProviderFactory> -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ModelBinding.CompositeValueProvider>
Public Shared Function CreateAsync (actionContext As ActionContext, factories As IList(Of IValueProviderFactory)) As Task(Of CompositeValueProvider)

Parameters

actionContext
ActionContext

The ActionContext associated with the current request.

factories
IList<IValueProviderFactory>

The IValueProviderFactory to be applied to the context.

Returns

A Task<TResult> which, when completed, asynchronously returns a CompositeValueProvider.

Applies to