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)

Syntax

'Declaration
Public Property Text As String
public string Text { get; set; }
public:
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.

Exceptions

Exception type Condition
ArgumentNullException

An attempt is made to set Text to null.

ArgumentOutOfRangeException

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

ArgumentException

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

Remarks

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.

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