Share via


GrammarBuilder.op_Addition Method (GrammarBuilder, String)

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

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

Syntax

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

Parameters

  • builder
    A valid instance of GrammarBuilder to contain the initial grammar logic of the new GrammarBuilder.
  • phrase
    A System.String containing a phrase to be appended to the grammar logic of builder.

Return Value

Returns an instance of GrammarBuilder if successful, null is returned or an exception generated if the operation fails. Because GrammarBuilder support 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