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 实例。

返回

返回 , bool 如果 true 当前 SemanticValue 包含键字符串和 的指定值的 实例 KeyValuePair<String, SemanticValue> ,则 SemanticValue返回 。 否则将返回 false

实现

适用于