CompositeValueProvider.CreateAsync 方法

定义

重载

CreateAsync(ControllerContext)

使用提供的 controllerContext异步创建 CompositeValueProvider

CreateAsync(ActionContext, IList<IValueProviderFactory>)

使用提供的 actionContext异步创建 CompositeValueProvider

CreateAsync(ControllerContext)

Source:
CompositeValueProvider.cs
Source:
CompositeValueProvider.cs
Source:
CompositeValueProvider.cs

使用提供的 controllerContext异步创建 CompositeValueProvider

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)

参数

controllerContext
ControllerContext

ControllerContext 当前请求关联的 。

返回

一个 Task<TResult> ,完成后异步返回 CompositeValueProvider

适用于

CreateAsync(ActionContext, IList<IValueProviderFactory>)

Source:
CompositeValueProvider.cs
Source:
CompositeValueProvider.cs
Source:
CompositeValueProvider.cs

使用提供的 actionContext异步创建 CompositeValueProvider

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)

参数

actionContext
ActionContext

ActionContext 当前请求关联的 。

factories
IList<IValueProviderFactory>

IValueProviderFactory要应用于上下文的 。

返回

一个 Task<TResult> ,完成后异步返回 CompositeValueProvider

适用于