Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

GrammarBuilder.Addition Operator (GrammarBuilder, GrammarBuilder)

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

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

public static GrammarBuilder operator +(
	GrammarBuilder builder1,
	GrammarBuilder builder2


Type: System.Speech.Recognition.GrammarBuilder

The first grammar element.

Type: System.Speech.Recognition.GrammarBuilder

The second grammar element.

Return Value

Type: System.Speech.Recognition.GrammarBuilder
Returns a GrammarBuilder for the sequence of the builder1 parameter followed by the builder2 parameter.

GrammarBuilder supports conversions from the following classes.

This method accepts the objects listed above for the builder1 and builder2 parameters. For more information, see the Implicit operators.

Important noteImportant

When you combine GrammarBuilder objects that contain SemanticResultValue or SemanticResultKey instances, make sure you avoid creating duplicate semantic elements with the same key name or multiple semantic elements that could repeatedly modify the Value property of a SemanticValue object. The speech recognizer can throw an exception if it encounters these circumstances. For more information about building a speech recognition grammar that contains semantic information, see Understanding SemanticResultValue and SemanticResultKey Objects.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4
© 2015 Microsoft