SrgsItem Constructor (SrgsElement[])

 

Initializes a new instance of the SrgsItem class and specifies an array of SrgsElement objects to add to this instance.

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

public SrgsItem(
	params SrgsElement[] elements
)

Parameters

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: