편집

다음을 통해 공유


CookieAttribute.GetValueProvider(ModelBindingExecutionContext) Method

Definition

Returns 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

Parameters

modelBindingExecutionContext
ModelBindingExecutionContext

The execution context.

Returns

The value provider.

Implements

Exceptions

The modelBindingExecutionContext parameter is null.

Remarks

This method stores all cookie names and values in a dictionary object and then creates and returns a new instance of the DictionaryValueProvider<TValue> class.

Applies to