![Collapse image Collapse image](collapse_all.gif)
![Expand Image Expand Image](expand_all.gif)
![](collapse_all.gif)
![](expand_all.gif)
![](dropdown.gif)
![](dropdownHover.gif)
![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
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
Visual Basic (Declaration) |
---|
Public Sub New ( _ text As String _ ) |
Visual Basic (Usage) |
---|
Dim text As String Dim instance As New SrgsItem(text) |
C# |
---|
public SrgsItem( string text ) |
Parameters
- text
- Type: System..::..String
The text associated with the item.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | text is nullNothingnullptrunita null reference (Nothing in Visual Basic). |
ArgumentException | text is an empty string. |