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

适用于