![Collapse image Collapse image](collapse_all.gif)
![Expand Image Expand Image](expand_all.gif)
![](collapse_all.gif)
![](expand_all.gif)
![](dropdown.gif)
![](dropdownHover.gif)
![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
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
Visual Basic (Declaration) |
---|
Public Sub Add ( _ element As SrgsElement _ ) |
Visual Basic (Usage) |
---|
Dim instance As SrgsItem Dim element As SrgsElement instance.Add(element) |
C# |
---|
public void Add( SrgsElement element ) |
Parameters
- element
- Type: Microsoft.Speech.Recognition.SrgsGrammar..::..SrgsElement
The object to add.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | element is null. |
Remarks
The Add(SrgsElement) method appends elements to the Elements property.