Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

SrgsItem Constructor (String)

Initializes a new instance of the SrgsItem class and specifies its textual contents.

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

Syntax

'Declaration
Public Sub New ( _
    text As String _
)
'Usage
Dim text As String

Dim instance As New SrgsItem(text)
public SrgsItem(
    string text
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

text is a null reference (Nothing in Visual Basic).

ArgumentException

text is an empty string.

See Also

Reference

SrgsItem Class

SrgsItem Members

SrgsItem Overload

Microsoft.Speech.Recognition.SrgsGrammar Namespace

Other Resources

Create Grammars Using SrgsGrammar (Microsoft.Speech)