Initializes a new instance of the SrgsItem class and specifies minimum and maximum repetition counts.
Namespace:
Microsoft.Speech.Recognition.SrgsGrammar
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub New ( _ min As Integer, _ max As Integer _ ) |
Visual Basic (Usage) |
---|
Dim min As Integer Dim max As Integer Dim instance As New SrgsItem(min, max) |
C# |
---|
public SrgsItem( int min, int max ) |
Parameters
- min
- Type: System..::..Int32
The minimum number of times that the contents of the item must be repeated.
- max
- Type: System..::..Int32
The maximum number of times that the text in the item can be repeated.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | min is negative or larger than 255. max is negative or larger than 255. |
ArgumentException | min is larger than max. |