Add Method

Microsoft Speech Platform SDK 11

Collapse image Expand Image Copy image CopyHover image

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

ExceptionCondition
ArgumentNullException

element is null.

Remarks

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

See Also