IValueProviderFactory.CreateValueProviderAsync(ValueProviderFactoryContext) 方法

定義

IValueProvider使用來自目前要求的值建立,並將其新增至 ValueProviders 清單。

public:
 System::Threading::Tasks::Task ^ CreateValueProviderAsync(Microsoft::AspNetCore::Mvc::ModelBinding::ValueProviderFactoryContext ^ context);
public System.Threading.Tasks.Task CreateValueProviderAsync (Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderFactoryContext context);
abstract member CreateValueProviderAsync : Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderFactoryContext -> System.Threading.Tasks.Task
Public Function CreateValueProviderAsync (context As ValueProviderFactoryContext) As Task

參數

傳回

Task

Task當完成時,將會在適用的情況下,將 IValueProvider 實例新增至 ValueProviders 清單。

適用於