![Collapse image Collapse image](collapse_all.gif)
![Expand Image Expand Image](expand_all.gif)
![](collapse_all.gif)
![](expand_all.gif)
![](dropdown.gif)
![](dropdownHover.gif)
![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
![]() ![]() |
SemanticValue..::..IDictionary<(Of <(<'String, SemanticValue>)>)>..::..TryGetValue Method |
SemanticValue Class See Also Send Feedback |
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 ) |
Parameters
- key
- Type: System..::..String
A key for a SemanticValue.
- value
- Type: Microsoft.Speech.Recognition..::..SemanticValue%
The SemanticValue to get.
Return Value
Type: System..::..BooleanReturns true if the dictionary contains a key/value pair with the specified key; otherwise the method returns false.