SrgsText Constructor (String)

Initializes a new instance of the SrgsText class, specifying the text of the instance.

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

Syntax

'Declaration
Public Sub New ( _
    text As String _
)
public SrgsText (
    string text
)
public:
SrgsText (
    String^ text
)
public SrgsText (
    String text
)
public function SrgsText (
    text : String
)

Parameters

  • text
    The value used to set the Text property on the SrgsText instance.

Exceptions

Exception type Condition
ArgumentNullException

text is null.

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

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