Initializes a new instance of the SrgsItem class and specifies an array of SrgsElement objects to add to this instance.
Namespace:
Microsoft.Speech.Recognition.SrgsGrammar
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub New ( _ ParamArray elements As SrgsElement() _ ) |
Visual Basic (Usage) |
---|
Dim elements As SrgsElement() Dim instance As New SrgsItem(elements) |
C# |
---|
public SrgsItem( params SrgsElement[] elements ) |
Parameters
- elements
- Type: array<Microsoft.Speech.Recognition.SrgsGrammar..::..SrgsElement>[]()[][]
The array of objects to add to the SrgsItem instance.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | elements is nullNothingnullptrunita null reference (Nothing in Visual Basic). |
ArgumentException | Any member of the elements array is nullNothingnullptrunita null reference (Nothing in Visual Basic). |