SrgsItem Constructor (Int32, Int32, SrgsElement[])

Initializes a new instance of the SrgsItem class, specifying minimum and maximum repetition counts and 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

  • min
    The minimum number of times that any of the items in the SrgsItem object can be repeated.
  • max
    The maximum number of times that any of the items in the SrgsItem object can be repeated.
  • 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