Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

SrgsItem Constructor (SrgsElement[])

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

'Declaration
Public Sub New ( _
    ParamArray elements As SrgsElement() _
)
'Usage
Dim elements As SrgsElement()

Dim instance As New SrgsItem(elements)
public SrgsItem(
    params SrgsElement[] elements
)

Parameters

  • elements
    Type: []
    The array of objects to add to the SrgsItem instance.

Exceptions

Exception Condition
ArgumentNullException

elements is a null reference (Nothing in Visual Basic).

ArgumentException

Any member of the elements array is a null reference (Nothing in Visual Basic).

See Also

Reference

SrgsItem Class

SrgsItem Members

SrgsItem Overload

Microsoft.Speech.Recognition.SrgsGrammar Namespace

Other Resources

Create Grammars Using SrgsGrammar (Microsoft.Speech)