SrgsItem.SetRepeat Method (Int32)

 

Sets the number of times that the contents of an SrgsItem must be spoken.

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

public void SetRepeat(
	int count
)

Parameters

count
Type: System.Int32

The number of times that the item must be spoken.

Exception Condition
ArgumentOutOfRangeException

count is less than 0 or greater than 255.

This method sets the MaxRepeat and MinRepeat properties to the value in count.

.NET Framework
Available since 3.0
Return to top
Show: