LanguageSpecificStringDictionary.Add LanguageSpecificStringDictionary.Add LanguageSpecificStringDictionary.Add LanguageSpecificStringDictionary.Add Method

定義

將索引鍵/值組加入 LanguageSpecificStringDictionaryAdds a key/value pair to the LanguageSpecificStringDictionary.

多載

Add(KeyValuePair<XmlLanguage,String>) Add(KeyValuePair<XmlLanguage,String>) Add(KeyValuePair<XmlLanguage,String>) Add(KeyValuePair<XmlLanguage,String>)

將索引鍵/值組加入 LanguageSpecificStringDictionaryAdds a key/value pair to the LanguageSpecificStringDictionary.

Add(XmlLanguage, String) Add(XmlLanguage, String) Add(XmlLanguage, String) Add(XmlLanguage, String)

將語言和關聯字串加入至 LanguageSpecificStringDictionaryAdds a language and associated string to the LanguageSpecificStringDictionary.

Add(KeyValuePair<XmlLanguage,String>) Add(KeyValuePair<XmlLanguage,String>) Add(KeyValuePair<XmlLanguage,String>) Add(KeyValuePair<XmlLanguage,String>)

重要

此 API 不符合 CLS 規範。

將索引鍵/值組加入 LanguageSpecificStringDictionaryAdds a key/value pair to the LanguageSpecificStringDictionary.

public:
 virtual void Add(System::Collections::Generic::KeyValuePair<System::Windows::Markup::XmlLanguage ^, System::String ^> item);
[System.CLSCompliant(false)]
public void Add (System.Collections.Generic.KeyValuePair<System.Windows.Markup.XmlLanguage,string> item);
abstract member Add : System.Collections.Generic.KeyValuePair<System.Windows.Markup.XmlLanguage, string> -> unit
override this.Add : System.Collections.Generic.KeyValuePair<System.Windows.Markup.XmlLanguage, string> -> unit
Public Sub Add (item As KeyValuePair(Of XmlLanguage, String))

參數

item
KeyValuePair<XmlLanguage,String>

索引鍵/值組的陣列。An array of key/value pairs. 索引鍵為型別 XmlLanguage 的物件。The key is an object of type XmlLanguage. 值是關聯的字串。The value is an associated string.

實作

Add(XmlLanguage, String) Add(XmlLanguage, String) Add(XmlLanguage, String) Add(XmlLanguage, String)

將語言和關聯字串加入至 LanguageSpecificStringDictionaryAdds a language and associated string to the LanguageSpecificStringDictionary.

public:
 virtual void Add(System::Windows::Markup::XmlLanguage ^ key, System::String ^ value);
public void Add (System.Windows.Markup.XmlLanguage key, string value);
abstract member Add : System.Windows.Markup.XmlLanguage * string -> unit
override this.Add : System.Windows.Markup.XmlLanguage * string -> unit
Public Sub Add (key As XmlLanguage, value As String)

參數

key
XmlLanguage XmlLanguage XmlLanguage XmlLanguage

型別 XmlLanguage 的值。A value of type XmlLanguage.

value
String String String String

型別 String 的值。A value of type String.

實作

適用於