SrgsItem Constructor (Int32)

 

Initializes a new instance of the SrgsItem class and specifies the number of times that its contents must be spoken.

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

public SrgsItem(
	int repeatCount
)

Parameters

repeatCount
Type: System.Int32

The number of times that the item must be spoken.

Exception Condition
ArgumentOutOfRangeException

repeatCount is negative or is larger than 255.

This constructor sets MaxRepeat and MinRepeat properties of the new SrgsItem to the value in repeatCount.

.NET Framework
Available since 3.0
Return to top
Show: