SrgsItem Constructor (Int32, Int32, String)

Initializes a new instance of the SrgsItem class, specifying minimum and maximum repetition counts for the item and specifying the text associated with the item.

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

Syntax

'Declaration

Parameters

  • min
    The minimum number of times that the item can be repeated.
  • max
    The maximum number of times that the item can be repeated.
  • text
    The text associated with the item.

Exceptions

Exception type Condition
ArgumentOutOfRangeException

min is negative or larger than 255.

max is negative or larger than 255.

ArgumentException

min is larger than max.

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