Compartilhar via


Note

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

SrgsItem.Add Method

Adds an object to the collection of objects contained in this SrgsItem instance.

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

Syntax

'Declaration
Public Sub Add ( _
    element As SrgsElement _
)
'Usage
Dim instance As SrgsItem
Dim element As SrgsElement

instance.Add(element)
public void Add(
    SrgsElement element
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

element is null.

Remarks

The Add(SrgsElement) method appends elements to the Elements property.

See Also

Reference

SrgsItem Class

SrgsItem Members

Microsoft.Speech.Recognition.SrgsGrammar Namespace

Other Resources

Create Grammars Using SrgsGrammar (Microsoft.Speech)