SrgsToken.Text Property

Gets or sets the text contained within the SrgsToken class instance.

Namespace: Microsoft.Speech.Recognition.SrgsGrammar
Assembly: Microsoft.Speech (in microsoft.speech.dll)


Public Property Text As String
public string Text { get; set; }
property String^ Text {
    String^ get ();
    void set (String^ value) sealed;
/** @property */
public String get_Text ()

/** @property */
public final void set_Text (String value)
public function get Text () : String

public final function set Text (value : String)

Property Value

The text contained within the SrgsToken class instance.


Exception type Condition

An attempt is made to set Text to null.


An attempt is made to assign an empty string to Text.


An attempt is made to assign a string that contains a quotation mark (") to Text.


The default value for the Text property is an empty string—"".

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.


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


SrgsToken Class
SrgsToken Members
Microsoft.Speech.Recognition.SrgsGrammar Namespace