RouteValueProviderFactory.CreateValueProviderAsync 方法

定义

使用当前请求中的值创建 , IValueProvider 并将其添加到 ValueProviders 列表中。

public:
 virtual 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
override this.CreateValueProviderAsync : Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderFactoryContext -> System.Threading.Tasks.Task
Public Function CreateValueProviderAsync (context As ValueProviderFactoryContext) As Task

参数

返回

完成后 Task ,将添加实例 IValueProvider 以列出 ValueProviders (如果适用)。

实现

适用于