SrgsItem.SetRepeat Method (Int32, Int32)

 

Sets the minimum number of times and the maximum number of times that an item can be spoken.

Namespace:   System.Speech.Recognition.SrgsGrammar
Assembly:  System.Speech (in System.Speech.dll)

public void SetRepeat(
	int minRepeat,
	int maxRepeat
)

Parameters

minRepeat
Type: System.Int32

The minimum number of times that the item must be spoken.

maxRepeat
Type: System.Int32

The maximum number of times that the item can be spoken.

Exception 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.

.NET Framework
Available since 3.0
Return to top
Show: