Share via


SrgsItem.Add(SrgsElement) Method

Definition

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

public:
 void Add(System::Speech::Recognition::SrgsGrammar::SrgsElement ^ element);
public void Add (System.Speech.Recognition.SrgsGrammar.SrgsElement element);
member this.Add : System.Speech.Recognition.SrgsGrammar.SrgsElement -> unit
Public Sub Add (element As SrgsElement)

Parameters

element
SrgsElement

The object to add.

Exceptions

element is null.

Remarks

The Add method appends an element to the Elements property.

Applies to

See also