CookieAttribute.GetValueProvider Method (ModelBindingExecutionContext)

.NET Framework (current version)
 

Returns the value provider.

Namespace:   System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

public override IValueProvider GetValueProvider(
	ModelBindingExecutionContext modelBindingExecutionContext
)

Parameters

modelBindingExecutionContext
Type: System.Web.ModelBinding.ModelBindingExecutionContext

The execution context.

Return Value

Type: System.Web.ModelBinding.IValueProvider

The value provider.

Exception Condition
ArgumentNullException

The modelBindingExecutionContext parameter is null.

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.

.NET Framework
Available since 4.5
Return to top
Show: