SrgsRulesCollection.Add(SrgsRule[]) Metod

Definition

Lägger till innehållet i en matris med SrgsRule objekt i SrgsRulesCollection objektet.

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())

Parametrar

rules
SrgsRule[]

Matrisen med regelobjekt som ska läggas till i SrgsRulesCollection objektet.

Undantag

rules är null.

Alla SrgsRule objekt i matrisen rules är null.

Gäller för