Initializes a new instance of the SrgsText class, specifying the text of the instance.
Namespace:
Microsoft.Speech.Recognition.SrgsGrammar
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub New ( _ text As String _ ) |
Visual Basic (Usage) |
---|
Dim text As String Dim instance As New SrgsText(text) |
C# |
---|
public SrgsText( string text ) |
Parameters
- text
- Type: System..::..String
The value used to set the Text()()()() property on the SrgsText instance.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | text is nullNothingnullptrunita null reference (Nothing in Visual Basic). |