SrgsRulesCollection..::..Add Method (array<SrgsRule>[]()[][]) |
SrgsRulesCollection Class See Also Send Feedback |
Adds the contents of an array of SrgsRule objects to the SrgsRulesCollection object.
Namespace:
Microsoft.Speech.Recognition.SrgsGrammar
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub Add ( _ ParamArray rules As SrgsRule() _ ) |
Visual Basic (Usage) |
---|
Dim instance As SrgsRulesCollection Dim rules As SrgsRule() instance.Add(rules) |
C# |
---|
public void Add( params SrgsRule[] rules ) |
Parameters
- rules
- Type: array<Microsoft.Speech.Recognition.SrgsGrammar..::..SrgsRule>[]()[][]
The array of rule objects to add to the SrgsRulesCollection object.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | rules is nullNothingnullptrunita null reference (Nothing in Visual Basic). |
ArgumentException | Any SrgsRule object in the rules array is nullNothingnullptrunita null reference (Nothing in Visual Basic). |