CookieAttribute.GetValueProvider(ModelBindingExecutionContext) 方法

定义

返回值提供程序。

public:
 override System::Web::ModelBinding::IValueProvider ^ GetValueProvider(System::Web::ModelBinding::ModelBindingExecutionContext ^ modelBindingExecutionContext);
public override System.Web.ModelBinding.IValueProvider GetValueProvider (System.Web.ModelBinding.ModelBindingExecutionContext modelBindingExecutionContext);
override this.GetValueProvider : System.Web.ModelBinding.ModelBindingExecutionContext -> System.Web.ModelBinding.IValueProvider
Public Overrides Function GetValueProvider (modelBindingExecutionContext As ModelBindingExecutionContext) As IValueProvider

参数

modelBindingExecutionContext
ModelBindingExecutionContext

该执行上下文。

返回

IValueProvider

值提供程序。

实现

例外

modelBindingExecutionContext 参数为 null

注解

此方法将所有 Cookie 名称和值存储在字典对象中,然后创建并返回 类的新 DictionaryValueProvider<TValue> 实例。

适用于