This documentation is archived and is not being maintained.

GrammarBuilder.Add Method

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

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

Dd186026.note(en-us,office.13).gifNote:
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.

NameDescription
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.
Show: