GrammarBuilder.Add Method

Returns a new instance of GrammarBuilder constructed by appending pairs the grammar definition objects Choices, GrammarBuilder, and System.String.

Remarks

The order of arguments provided to any overload of Add is the one in which their grammar logic is evaluated.

Note

Because GrammarBuilder supports implicit conversions from SemanticResultValue and SemanticResultKey, these may be cast to use as arguments for any over load that take GrammarBuilder as an argument.

Overload List

Name Description
GrammarBuilder.Add (Choices, GrammarBuilder)
Returns a new instance of GrammarBuilder constructed from by appending the grammar logic of a GrammarBuilder instance to the grammar logic of a Choices object.
GrammarBuilder.Add (GrammarBuilder, Choices)
Returns a new instance of GrammarBuilder constructed from by appending the grammar logic of a Choices instance to the grammar logic of a GrammarBuilder object.
GrammarBuilder.Add (GrammarBuilder, GrammarBuilder)
Returns a new instance of GrammarBuilder constructed by combining the grammar logic of two GrammarBuilder instances.
GrammarBuilder.Add (GrammarBuilder, String)
Returns a new instance of GrammarBuilder constructed from by appending a phrase to the grammar logic of a GrammarBuilder instance
GrammarBuilder.Add (String, GrammarBuilder)
Returns a new instance of GrammarBuilder constructed from by appending the grammar logic of a GrammarBuilder instance to a phrase.

See Also

Reference

GrammarBuilder Class
GrammarBuilder Members
Microsoft.Speech.Recognition Namespace