SrgsRule Members

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

Represents a grammar rule.

The SrgsRule type exposes the following members.

Constructors

  NameDescription
Public methodSrgsRule(String)Initializes a new instance of the SrgsRule class and specifies the identifier for the rule.
Public methodSrgsRule(String, array<SrgsElement>[]()[][])Initializes a new instance of the SrgsRule class from an array of SrgsElement objects.
Top

Properties

  NameDescription
Public propertyElementsGets the collection of SrgsElement objects in the SrgsRule instance.
Public propertyIdGets or sets the identifier for the rule.
Public propertyScopeGets or sets whether a rule can be activated for recognition and when the rule can be referenced by other rules.
Top

Methods

  NameDescription
Public methodAddAdds an SrgsElement to an SrgsRule object.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

See Also