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.