Note

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

SrgsRule Members

Include Protected Members
Include Inherited Members

Represents a grammar rule.

The SrgsRule type exposes the following members.

Constructors

  Name Description
Public method SrgsRule(String) Initializes a new instance of the SrgsRule class and specifies the identifier for the rule.
Public method SrgsRule(String, []) Initializes a new instance of the SrgsRule class from an array of SrgsElement objects.

Top

Properties

  Name Description
Public property Elements Gets the collection of SrgsElement objects in the SrgsRule instance.
Public property Id Gets or sets the identifier for the rule.
Public property Scope Gets or sets whether a rule can be activated for recognition and when the rule can be referenced by other rules.

Top

Methods

  Name Description
Public method Add Adds an SrgsElement to an SrgsRule object.
Public method Equals (inherited from Object)
Protected method Finalize (inherited from Object)
Public method GetHashCode (inherited from Object)
Public method GetType (inherited from Object)
Protected method MemberwiseClone (inherited from Object)
Public method ToString (inherited from Object)

Top

See Also

Reference

SrgsRule Class

Microsoft.Speech.Recognition.SrgsGrammar Namespace