SrgsItem Constructor (Int32, Int32)
Initializes a new instance of the SrgsItem class, specifying minimum and maximum repetition counts.
Namespace: Microsoft.Speech.Recognition.SrgsGrammar
Assembly: Microsoft.Speech (in microsoft.speech.dll)
Syntax
'Declaration
Parameters
- min
The minimum number of times that the text in the item can be repeated.
- max
The maximum number of times that the text in the item can be repeated.
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