Share via


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 本身不會自動加入至指定的字典。

適用於