SpeechGrammarBuilderRuleSet.AddChoiceRule Method (String, Generic IIterable)

Add a choice rule using a key and a phrase.

Syntax

public:
SpeechChoiceRule^ AddChoiceRule(
         String^ key,
         IIterable<String^ >^ phrases
)  

Parameters

key
Type: String 

 The key.

phrases
Type: IIterable<String^ > 

  The phrase.

Return value

Type: SpeechChoiceRule 

The SpeechChoiceRule object associated with the specified key.

Requirements

Namespace: Windows.Xbox.Speech.Recognition

Metadata: windows.winmd

See also

Reference

SpeechGrammarBuilderRuleSet Class

SpeechGrammarBuilderRuleSet Members

Windows.Xbox.Speech.Recognition Namespace