Addition Operator (GrammarBuilder, String)

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

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

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

Syntax

Visual Basic (Declaration)
Public Shared Operator + ( _
	builder As GrammarBuilder, _
	phrase As String _
) As GrammarBuilder
Visual Basic (Usage)
Dim builder As GrammarBuilder
Dim phrase As String
Dim returnValue As GrammarBuilder

returnValue = (builder + phrase)
C#
public static GrammarBuilder operator +(
	GrammarBuilder builder,
	string phrase
)

Parameters

builder
Type: Microsoft.Speech.Recognition..::..GrammarBuilder

The first grammar element.

phrase
Type: System..::..String

The second grammar element, which represents a sequence of words.

Return Value

Type: Microsoft.Speech.Recognition..::..GrammarBuilder

Returns a GrammarBuilder for the sequence of the builder parameter followed by the phrase parameter.

Remarks

GrammarBuilder supports conversions from the following classes.

This method accepts the objects listed above for the builder parameter. For more information, see the ImplicitWideningImplicitImplicitImplicit operators.

See Also