SrgsItem.Add Method (SrgsElement)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public void Add(
	SrgsElement element
)

Parameters

element
Type: System.Speech.Recognition.SrgsGrammar.SrgsElement

The object to add.

Exception Condition
ArgumentNullException

element is null.

The Add method appends an element to the Elements property.

.NET Framework
Available since 3.0
Return to top
Show: