Sdílet prostřednictvím


SrgsToken(String) Konstruktor

Definice

Inicializuje novou instanci SrgsToken třídy a určí text, který se má rozpoznat.

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)

Parametry

text
String

Text nové SrgsToken instance třídy

Výjimky

text je null.

text je prázdné.

Poznámky

Vytvoří SrgsToken objekt, jehož Text vlastnost je nastavena zpočátku na hodnotu text parametru.

Platí pro