CompositeValueProvider.CreateAsync 方法

定義

多載

CreateAsync(ControllerContext)

使用提供的 controllerContext 以非同步方式建立 CompositeValueProvider

CreateAsync(ActionContext, IList<IValueProviderFactory>)

使用提供的 actionContext 以非同步方式建立 CompositeValueProvider

CreateAsync(ControllerContext)

來源:
CompositeValueProvider.cs
來源:
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>)

來源:
CompositeValueProvider.cs
來源:
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 回 。

適用於