XmlDictionaryString(IXmlDictionary, String, Int32) 建構函式

定義

建立這個類別的實例。

public:
 XmlDictionaryString(System::Xml::IXmlDictionary ^ dictionary, System::String ^ value, int key);
public XmlDictionaryString(System.Xml.IXmlDictionary dictionary, string value, int key);
new System.Xml.XmlDictionaryString : System.Xml.IXmlDictionary * string * int -> System.Xml.XmlDictionaryString
Public Sub New (dictionary As IXmlDictionary, value As String, key As Integer)

參數

dictionary
IXmlDictionary

他們包含 IXmlDictionary 了這個實例。

value
String

字串是字典條目的值。

key
Int32

整數是字典條目的關鍵字。

例外狀況

dictionaryvaluenull

key 小於 0 或大於 Int32.MaxValue / 4。

備註

XmlDictionaryString 字典不會自動加入指定的字典。

適用於