GrammarBuilder.Addition Operator

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a new GrammarBuilder that corresponds to a sequence of two grammar elements.

Namespace:   System.Speech.Recognition
Assembly:  System.Speech (in System.Speech.dll)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticAddition(Choices, GrammarBuilder)

Creates a new GrammarBuilder that contains a Choices object followed by a GrammarBuilder object.

System_CAPS_puboperatorSystem_CAPS_staticAddition(GrammarBuilder, Choices)

Creates a new GrammarBuilder that contains a GrammarBuilder followed by a Choices.

System_CAPS_puboperatorSystem_CAPS_staticAddition(GrammarBuilder, GrammarBuilder)

Creates a new GrammarBuilder that contains a sequence of two GrammarBuilder objects.

System_CAPS_puboperatorSystem_CAPS_staticAddition(GrammarBuilder, String)

Creates a new GrammarBuilder that contains a GrammarBuilder followed by a phrase.

System_CAPS_puboperatorSystem_CAPS_staticAddition(String, GrammarBuilder)

Creates a new GrammarBuilder that contains a phrase followed by a GrammarBuilder.

The order of the operands determines the order of the elements in the new GrammarBuilder.

System_CAPS_importantImportant

Caution is recommended when combining Choices or GrammarBuilder objects that contain SemanticResultValue or SemanticResultKey instances with other grammar elements. The speech recognizer can throw an exception when using a speech recognition grammar that contains duplicate semantic elements with the same key name or multiple semantic elements that could repeatedly modify the value of the same semantic element. For more information about building a speech recognition grammar that contains semantic information, see Using SemanticResultKey and SemanticResultValue Objects.

For more information about building and using speech recognition grammars, see Speech Recognition and Creating GrammarBuilder Grammars.

Return to top
Show: