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

实现

适用于