SrgsRulesCollection.Add(SrgsRule[]) 方法

定义

SrgsRule 的数组的内容对象添加到 SrgsRulesCollection对象中。Adds the contents of an array of SrgsRule objects to the SrgsRulesCollection object.

public:
 void Add(... cli::array <System::Speech::Recognition::SrgsGrammar::SrgsRule ^> ^ rules);
public void Add (params System.Speech.Recognition.SrgsGrammar.SrgsRule[] rules);
override this.Add : System.Speech.Recognition.SrgsGrammar.SrgsRule[] -> unit
Public Sub Add (ParamArray rules As SrgsRule())

参数

rules
SrgsRule[]

要添加到 SrgsRulesCollection 对象中的规则对象的数组。The array of rule objects to add to the SrgsRulesCollection object.

例外

rulesnullrules is null.

rules 数组中的任何 SrgsRule 对象都为 nullAny SrgsRule object in the rules array is null.

适用于