SrgsItem.SetRepeat Method (Int32, Int32)
Sets the minimum number of times and the maximum number of times that an item can be spoken.
Namespace: Microsoft.Speech.Recognition.SrgsGrammar
Assembly: Microsoft.Speech (in microsoft.speech.dll)
Syntax
'Declaration
Parameters
- minRepeat
The minimum number of times that the item can be spoken.
- maxRepeat
The maximum number of times that the item can be spoken.
Exceptions
Exception type | Condition |
---|---|
ArgumentOutOfRangeException | minRepeat is less than zero or larger than 255. maxRepeat is less than zero or larger than 255. |
ArgumentException | minRepeat is larger than maxRepeat. |
Thread Safety
All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.
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