LanguageSpecificStringDictionary.Contains(KeyValuePair<XmlLanguage,String>) LanguageSpecificStringDictionary.Contains(KeyValuePair<XmlLanguage,String>) LanguageSpecificStringDictionary.Contains(KeyValuePair<XmlLanguage,String>) LanguageSpecificStringDictionary.Contains(KeyValuePair<XmlLanguage,String>) Method

定義

重要

此 API 不符合 CLS 規範。

判斷 LanguageSpecificStringDictionary 是否包含索引鍵/值組。Determines whether the LanguageSpecificStringDictionary contains the key/value pair.

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

參數

item
KeyValuePair<XmlLanguage,String>

要尋找的索引鍵/配對。The key/pair to locate. 索引鍵為型別 XmlLanguage 的物件。The key is an object of type XmlLanguage. 值是關聯的字串。The value is an associated string.

傳回

如果集合包含機碼值組則為 true,否則為 falsetrue if the collection contains the key/value pair; otherwise, false.

實作

適用於