SrgsToken Constructor
Initializes a new instance of the SrgsToken class, specifying the text of the SrgsToken class instance.
Namespace: Microsoft.Speech.Recognition.SrgsGrammar
Assembly: Microsoft.Speech (in microsoft.speech.dll)
Syntax
'Declaration
Public Sub New ( _
text As String _
)
public SrgsToken (
string text
)
public:
SrgsToken (
String^ text
)
public SrgsToken (
String text
)
public function SrgsToken (
text : String
)
Parameters
- text
The text of the new SrgsToken class instance.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | text is null. |
ArgumentOutOfRangeException | text is empty. |
Remarks
Creates a SrgsToken object whose Text property is set initially to the value of the text parameter.
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
SrgsToken Class
SrgsToken Members
Microsoft.Speech.Recognition.SrgsGrammar Namespace