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的執行個體。

傳回

Boolean

如果目前的 SemanticValue 包含指定索引鍵字串值的 KeyValuePair<String, SemanticValue> 執行個體和 SemanticValue,則傳回 truebool。 否則,傳回 false

實作

適用於