Bagikan melalui


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

SemanticValue.Contains Method

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

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

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

Parameters

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<T>.Contains(T)

See Also

Reference

SemanticValue Class

SemanticValue Members

Microsoft.Speech.Recognition Namespace