GrammarBuilder.op_Addition Method (String, GrammarBuilder)

Returns a new instance of GrammarBuilder constructed by appending the grammar logic of a GrammarBuilder instance to a phrase.

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

Syntax

'Declaration
Public Shared Operator + ( _
    phrase As String, _
    builder As GrammarBuilder _
) As GrammarBuilder
public static GrammarBuilder operator + (
    string phrase,
    GrammarBuilder builder
)
public:
static GrammarBuilder^ operator + (
    String^ phrase, 
    GrammarBuilder^ builder
)


Parameters

  • builder
    A valid instance of GrammarBuilder containing grammar logic to be appended to the grammar logic of choices.

Return Value

Returns an instance of GrammarBuilder if successful, null is returned or an exception generated if the operation fails.

Remarks

Because GrammarBuilder supports implicit conversions from SemanticResultValue and SemanticResultKey, these may be cast to use as builder.

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

See Also

Reference

GrammarBuilder Class
GrammarBuilder Members
Microsoft.Speech.Recognition Namespace