Export (0) Print
Expand All

SrgsToken Constructor

Initializes a new instance of the SrgsToken class and specifies the text to be recognized.

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

public SrgsToken(
	string text
)

Parameters

text
Type: System.String

The text of the new SrgsToken class instance.

ExceptionCondition
ArgumentNullException

text is null.

ArgumentOutOfRangeException

text is empty.

Creates a SrgsToken object whose Text property is set initially to the value of the text parameter.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft