SessionAttribute.GetValueProvider(ModelBindingExecutionContext) 方法

定义

获取值提供程序。Gets the value provider.

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

该执行上下文。The execution context.

返回

IValueProvider

DictionaryValueProvider<TValue> 的新实例包含会话状态值。A new instance of the DictionaryValueProvider<TValue> that contains session state values.

适用于