SpeechGrammarSet.TryGetValue method

Returns a value that indicates whether a specified key exists in the SpeechGrammarSet. If an item with that key exists, the item is retrieved as an out parameter.

Syntax

public bool TryGetValue(
  string key, 
  out SpeechGrammar value
)
Public Function TryGetValue(
  key As String,  
  <OutAttribute> value As SpeechGrammar 
) As Boolean

Parameters

  • key
    Type: System.String

    The key to check for in the SpeechGrammarSet.

  • value (out parameter)
    Type: SpeechGrammar

    The item, if it exists. Contains null if the item does not exist in the SpeechGrammarSet.

Return value

Type: System.Boolean

true if an item with that key exists in the SpeechGrammarSet; otherwise, false.

Requirements

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

End of phone support

Windows Phone 8.1 [Windows Phone Silverlight 8.1 apps only]

Namespace

Windows.Phone.Speech.Recognition

Capabilities

ID_CAP_SPEECH_RECOGNITION [Windows Phone] ID_CAP_MICROPHONE [Windows Phone] ID_CAP_NETWORKING [Windows Phone]

See also

SpeechGrammarSet