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
- 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.
See Also
Reference
Microsoft.Speech.Recognition.SrgsGrammar Namespace