Export (0) Print
Expand All

SrgsRulesCollection Class

Represents a collection of SrgsRule objects.

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

[SerializableAttribute]
public sealed class SrgsRulesCollection : KeyedCollection<string, SrgsRule>

After you define the content for an SrgsRule object, you must add it to the Rules collection of an SrgsDocument instance using the Add([]) method. An SrgsRule cannot be used for recognition until it has been added to the Rules collection of an SrgsDocument instance.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft