SrgsRulesCollection.Add Method (SrgsRule[])

Adds the contents of an array of a SrgsRule objects to the SrgsRuleCollection object.

Namespace: Microsoft.Speech.Recognition.SrgsGrammar
Assembly: Microsoft.Speech (in microsoft.speech.dll)

Syntax

'Declaration




Parameters

  • rules
    An array of type SrgsRule. Each rule in the array is added to the SrgsRuleCollection object.

Exceptions

Exception type Condition
ArgumentNullException

rules is null.

ArgumentException

Any SrgsRule element in the rules array is null.

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

See Also

Reference

SrgsRulesCollection Class
SrgsRulesCollection Members
Microsoft.Speech.Recognition.SrgsGrammar Namespace