SpeechGrammarSet.AddGrammarFromList Method

Creates a SpeechGrammar object by using a string array of values, and adds it to the speech grammar set.

Syntax

public:
SpeechGrammar^ AddGrammarFromList(
         String^ key,
         IIterable<String^ >^ phrases
)  

Parameters

key
Type: String 

 The name of the grammar.

phrases
Type: IIterable<String^ > 

  A string array of words or phrases that make up the grammar.

Return value

Type: SpeechGrammar 

The grammar that is added to the speech grammar set.

Requirements

Namespace: Windows.Xbox.Speech.Recognition

Metadata: windows.winmd

See also

Reference

SpeechGrammarSet Class

SpeechGrammarSet Members

Windows.Xbox.Speech.Recognition Namespace