Share via


DictionaryValueProvider<TValue> Constructor

Initializes a new instance of the DictionaryValueProvider<TValue> class.

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

Syntax

'Declaration
Public Sub New ( _
    dictionary As IDictionary(Of String, TValue), _
    culture As CultureInfo _
)
public DictionaryValueProvider(
    IDictionary<string, TValue> dictionary,
    CultureInfo culture
)
public:
DictionaryValueProvider(
    IDictionary<String^, TValue>^ dictionary, 
    CultureInfo^ culture
)

Parameters

  • culture
    Type: System.Globalization.CultureInfo
    Information about a specific culture, such as the names of the culture, the writing system, and the calendar used.

Exceptions

Exception Condition
ArgumentNullException

The dictionary parameter is null reference (Nothing in Visual Basic).

See Also

Reference

DictionaryValueProvider<TValue> Class

System.Web.Mvc Namespace