Initializes a new instance of the SrgsItem class and specifies the number of times that its contents must be spoken.
Namespace:
Microsoft.Speech.Recognition.SrgsGrammar
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ repeatCount As Integer _ ) |
| Visual Basic (Usage) |
|---|
Dim repeatCount As Integer Dim instance As New SrgsItem(repeatCount) |
| C# |
|---|
public SrgsItem( int repeatCount ) |
Parameters
- repeatCount
- Type: System..::..Int32
The number of times that the item must be spoken.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | repeatCount is negative or is larger than 255. |
Remarks
This constructor sets MaxRepeat and MinRepeat properties of the new SrgsItem to the value in repeatCount.