SrgsItem Constructor (Int32, Int32, SrgsElement[])

 

Initializes a new instance of the SrgsItem class, specifies an array of SrgsElement objects to add to this instance, and sets minimum and maximum repetition counts.

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

public SrgsItem(
	int min,
	int max,
	params SrgsElement[] elements
)

Parameters

min
Type: System.Int32

The minimum number of times that the contents of the SrgsItem object must be repeated.

max
Type: System.Int32

The maximum number of times that the contents of the SrgsItem object can be repeated.

elements
Type: System.Speech.Recognition.SrgsGrammar.SrgsElement[]

The array of objects to add to the SrgsItem instance.

Exception Condition
ArgumentNullException

elements is null.

ArgumentException

Any member of the elements array is null.

.NET Framework
Available since 3.0
Return to top
Show: