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


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

Namespace:   System.Speech.Recognition
Assembly:  System.Speech (in System.Speech.dll)

public bool Contains(
	KeyValuePair<string, SemanticValue> item


Type: System.Collections.Generic.KeyValuePair<String, SemanticValue>

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

Return Value

Type: System.Boolean

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.

.NET Framework
Available since 3.0
Return to top