Share via


SrgsItem Constructor (String)

Initializes a new instance of the SrgsItem class, specifying the text of the item.

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

Syntax

'Declaration

Parameters

  • text
    The text associated with the item.

Exceptions

Exception type Condition
ArgumentNullException

text is null.

ArgumentException

text is an empty string.

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

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