Share via


SrgsItem.Add(SrgsElement) 方法

定义

添加对象到此 SrgsItem 实例包含的对象的集合。

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)

参数

element
SrgsElement

要添加的对象。

例外

elementnull

注解

方法 Add 将元素追加到 Elements 属性。

适用于

另请参阅