Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

SrgsRulesCollection.Add Method (SrgsRule[])

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

'Declaration
Public Sub Add ( _
    ParamArray rules As SrgsRule() _
)
'Usage
Dim instance As SrgsRulesCollection
Dim rules As SrgsRule()

instance.Add(rules)
public void Add(
    params SrgsRule[] rules
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

rules is a null reference (Nothing in Visual Basic).

ArgumentException

Any SrgsRule object in the rules array is a null reference (Nothing in Visual Basic).

See Also

Reference

SrgsRulesCollection Class

SrgsRulesCollection Members

Add Overload

Microsoft.Speech.Recognition.SrgsGrammar Namespace