Dela via


SemanticValue.Contains(KeyValuePair<String,SemanticValue>) Method

Definition

Indicates whether the current SemanticValue instance collection contains a specific key and a specific instance of SemanticValue expressed as a key/value pair.

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

Parameters

item
KeyValuePair<String,SemanticValue>

An instance of KeyValuePair<TKey,TValue> instantiated for a given value of a key string and a SemanticValue instance.

Returns

Returns a bool which is true if the current SemanticValue contains an instance of KeyValuePair<String, SemanticValue> for a specified value of the key string and the SemanticValue. Otherwise, false is returned.

Implements

Applies to