語言

SemanticValue.Contains(KeyValuePair<String,SemanticValue>) 方法

定義

表示目前 SemanticValue 實例集合是否包含特定鍵值及以鍵值對表示的特定實例 SemanticValue 。

public:
 virtual bool Contains(System::Collections::Generic::KeyValuePair<System::String ^, System::Speech::Recognition::SemanticValue ^> item);
public bool Contains(System.Collections.Generic.KeyValuePair<string,System.Speech.Recognition.SemanticValue> item);
abstract member Contains : System.Collections.Generic.KeyValuePair<string, System.Speech.Recognition.SemanticValue> -> bool
override this.Contains : System.Collections.Generic.KeyValuePair<string, System.Speech.Recognition.SemanticValue> -> bool
Public Function Contains (item As KeyValuePair(Of String, SemanticValue)) As Boolean

參數

item
KeyValuePair<String,SemanticValue>

一個實例 KeyValuePair<TKey,TValue> ,實例化為給定的金鑰字串值與實 SemanticValue 例。

傳回

true 若 當前 SemanticValue 值包含 的 KeyValuePair<String, SemanticValue> 某個實例,且 ; SemanticValue否則, false。

實作

適用於