MSDN Library
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SpeechGrammarSet.HasKey method

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

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

 

 

Show:
© 2016 Microsoft