DictionaryValueProvider<TValue> 构造函数

定义

初始化 DictionaryValueProvider<TValue> 类的新实例。

public:
 DictionaryValueProvider(System::Collections::Generic::IDictionary<System::String ^, TValue> ^ dictionary, System::Globalization::CultureInfo ^ culture);
public DictionaryValueProvider (System.Collections.Generic.IDictionary<string,TValue> dictionary, System.Globalization.CultureInfo culture);
new System.Web.ModelBinding.DictionaryValueProvider<'Value> : System.Collections.Generic.IDictionary<string, 'Value> * System.Globalization.CultureInfo -> System.Web.ModelBinding.DictionaryValueProvider<'Value>
Public Sub New (dictionary As IDictionary(Of String, TValue), culture As CultureInfo)

参数

dictionary
IDictionary<String,TValue>

字典。

culture
CultureInfo

区域性信息。

例外

dictionary 参数为 null

适用于