Compartir a través de


Note

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

SrgsRulesCollection Class

Represents a collection of SrgsRule objects.

Inheritance Hierarchy

System.Object
  System.Collections.ObjectModel.Collection<SrgsRule>
    System.Collections.ObjectModel.KeyedCollection<String, SrgsRule>
      Microsoft.Speech.Recognition.SrgsGrammar.SrgsRulesCollection

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

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class SrgsRulesCollection _
    Inherits KeyedCollection(Of String, SrgsRule)
'Usage
Dim instance As SrgsRulesCollection
[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([]) 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.

See Also

Reference

SrgsRulesCollection Members

Microsoft.Speech.Recognition.SrgsGrammar Namespace