DictionaryValueProvider<TValue> Constructor (IDictionary<String, TValue>, CultureInfo)
Initializes a new instance of the DictionaryValueProvider<TValue> class.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
public DictionaryValueProvider(
IDictionary<string, TValue> dictionary,
CultureInfo culture
)
public:
DictionaryValueProvider(
IDictionary<String^, TValue>^ dictionary,
CultureInfo^ culture
)
new :
dictionary:IDictionary<string, 'TValue> *
culture:CultureInfo -> DictionaryValueProvider
Public Sub New (
dictionary As IDictionary(Of String, TValue),
culture As 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.CultureInfoInformation 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. |
See Also
DictionaryValueProvider<TValue> Class
System.Web.Mvc Namespace
Return to top