Compartilhar via


SrgsToken(String) Constructor

Definition

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

public:
 SrgsToken(System::String ^ text);
public SrgsToken (string text);
new System.Speech.Recognition.SrgsGrammar.SrgsToken : string -> System.Speech.Recognition.SrgsGrammar.SrgsToken
Public Sub New (text As String)

Parameters

text
String

The text of the new SrgsToken class instance.

Exceptions

text is null.

Remarks

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

Applies to