SrgsRule Members
From Microsoft Speech Platform SDK 11
Represents a grammar rule.
The SrgsRule type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| SrgsRule(String) | Initializes a new instance of the SrgsRule class and specifies the identifier for the rule. | |
| SrgsRule(String, array<SrgsElement>[]()[][]) | Initializes a new instance of the SrgsRule class from an array of SrgsElement objects. |
Properties
| Name | Description | |
|---|---|---|
| Elements | Gets the collection of SrgsElement objects in the SrgsRule instance. | |
| Id | Gets or sets the identifier for the rule. | |
| Scope | Gets or sets whether a rule can be activated for recognition and when the rule can be referenced by other rules. |
Methods
| Name | Description | |
|---|---|---|
| Add | Adds an SrgsElement to an SrgsRule object. | |
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| GetHashCode | (Inherited from Object.) | |
| GetType | (Inherited from Object.) | |
| MemberwiseClone | (Inherited from Object.) | |
| ToString | (Inherited from Object.) |