Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
SemanticValue.IDictionary<String, SemanticValue>.TryGetValue Method
Gets the SemanticValue associated with the specified key.
Namespace: Microsoft.Speech.Recognition
Assembly: Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
'Declaration
Private Function TryGetValue ( _
key As String, _
<OutAttribute> ByRef value As SemanticValue _
) As Boolean Implements IDictionary(Of String, SemanticValue).TryGetValue
'Usage
Dim instance As SemanticValue
Dim key As String
Dim value As SemanticValue
Dim returnValue As Boolean
returnValue = CType(instance, IDictionary(Of String, SemanticValue)).TryGetValue(key, _
value)
bool IDictionary<string, SemanticValue>.TryGetValue(
string key,
out SemanticValue value
)
Parameters
- key
Type: System.String
A key for a SemanticValue.
- value
Type: Microsoft.Speech.Recognition.SemanticValue
The SemanticValue to get.
Return Value
Type: System.Boolean
Returns true if the dictionary contains a key/value pair with the specified key; otherwise the method returns false.
Implements
IDictionary<TKey, TValue>.TryGetValue(TKey, TValue)