Share via


SrgsItem Constructor (SrgsElement[])

Initializes a new instance of the SrgsItem class, specifying an array of SrgsElement objects to be added to this instance.

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

Syntax

'Declaration

Parameters

  • elements
    The array of SrgsElement objects to be added to the SrgsItem instance.

Exceptions

Exception type Condition
ArgumentNullException

elements is null.

ArgumentException

Any member of the elements array 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

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