SrgsItem Constructor (Int32, Int32, String)

 

Initializes a new instance of the SrgsItem class, specifies the text associated with the item, and specifies minimum and maximum repetition counts.

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

public SrgsItem(
	int min,
	int max,
	string text
)

Parameters

min
Type: System.Int32

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

max
Type: System.Int32

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

text
Type: System.String

The text associated with the item.

Exception Condition
ArgumentOutOfRangeException

min is negative or larger than 255.

max is negative or larger than 255.

ArgumentException

min is larger than max.

.NET Framework
Available since 3.0
Return to top
Show: