SpeechGrammarSet.HasKey method

Applies to Windows Phone only

Determines whether the speech grammar set contains a specific grammar.

Syntax


public:
bool HasKey(
  String^ key
)

Parameters

key

Type: String

The name of the grammar.

Return value

Type: Boolean

Returns true if the speech grammar set contains the grammar, false if not.

Remarks

The name of a SpeechGrammar object is set as the value of the key parameter in any of the three AddGrammar methods: AddGrammarFromList, AddGrammarFromUri, and AddGrammarFromPredefinedType.

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

Metadata

Windows.winmd

Capabilities

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

See also

SpeechGrammarSet

 

 

Community Additions

ADD
Show:
© 2014 Microsoft