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)
public function DictionaryValueProvider( dictionary : IDictionary<String, TValue>, culture : CultureInfo )
Parameters
- dictionary
- Type: System.Collections.Generic.IDictionary(String, TValue)
The name/value pairs that are used to initialize the value provider.
- culture
- Type: System.Globalization.CultureInfo
Information about a specific culture, such as the names of the culture, the writing system, and the calendar used.
| Exception | Condition |
|---|---|
| ArgumentNullException | The dictionary parameter is a null reference (Nothing in Visual Basic). |
Show: