Contains Method

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

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

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

Syntax

Visual Basic (Declaration)
Public Function Contains ( _
	item As KeyValuePair(Of String, SemanticValue) _
) As Boolean
Visual Basic (Usage)
Dim instance As SemanticValue
Dim item As KeyValuePair(Of String, SemanticValue)
Dim returnValue As Boolean

returnValue = instance.Contains(item)
C#
public bool Contains(
	KeyValuePair<string, SemanticValue> item
)

Parameters

item
Type: System.Collections.Generic..::..KeyValuePair<(Of <(<'String, SemanticValue>)>)>

An instance of SemanticValue instantiated for 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 KeyValuePare<String,SemanticValue> for a specified value of the key string and the SemanticValue. Otherwise, false is returned.

Implements

ICollection<(Of <(<'T>)>)>..::..Contains(T)

See Also