Represents a collection of SrgsRule objects.
Inheritance Hierarchy
System..::..Object
System.Collections.ObjectModel..::..Collection<(Of <(<'SrgsRule>)>)>
System.Collections.ObjectModel..::..KeyedCollection<(Of <(<'String, SrgsRule>)>)>
Microsoft.Speech.Recognition.SrgsGrammar..::..SrgsRulesCollection
System.Collections.ObjectModel..::..Collection<(Of <(<'SrgsRule>)>)>
System.Collections.ObjectModel..::..KeyedCollection<(Of <(<'String, SrgsRule>)>)>
Microsoft.Speech.Recognition.SrgsGrammar..::..SrgsRulesCollection
Namespace:
Microsoft.Speech.Recognition.SrgsGrammar
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public NotInheritable Class SrgsRulesCollection _ Inherits KeyedCollection(Of String, SrgsRule) |
Visual Basic (Usage) |
---|
Dim instance As SrgsRulesCollection |
C# |
---|
[SerializableAttribute] public sealed class SrgsRulesCollection : KeyedCollection<string, SrgsRule> |
Remarks
After you define the content for an SrgsRule object, you must add it to the Rules collection of an SrgsDocument instance using the Add(array<SrgsRule>[]()[][]) method. An SrgsRule cannot be used for recognition until it has been added to the Rules collection of an SrgsDocument instance.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.