IDictionary(String, SemanticValue).TryGetValue Method

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

Gets the SemanticValue associated with the specified key.

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

Syntax

Visual Basic (Declaration)
Private Function TryGetValue ( _
	key As String, _
	<OutAttribute> ByRef value As SemanticValue _
) As Boolean Implements IDictionary(Of String, SemanticValue).TryGetValue
Visual Basic (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)
C#
bool IDictionary<string, SemanticValue>.TryGetValue(
	string key,
	out SemanticValue value
)

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<(Of <(<'TKey, TValue>)>)>..::..TryGetValue(TKey, TValue%)

See Also