Share via


Note

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

SrgsElement Class

Defines the base class for classes in the Microsoft.Speech.Recognition.SrgsGrammar namespace that correspond to the elements in an SRGS grammar.

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    Microsoft.Speech.Recognition.SrgsGrammar.SrgsElement
      Microsoft.Speech.Recognition.SrgsGrammar.SrgsItem
      Microsoft.Speech.Recognition.SrgsGrammar.SrgsOneOf
      Microsoft.Speech.Recognition.SrgsGrammar.SrgsRuleRef
      Microsoft.Speech.Recognition.SrgsGrammar.SrgsSemanticInterpretationTag
      Microsoft.Speech.Recognition.SrgsGrammar.SrgsText
      Microsoft.Speech.Recognition.SrgsGrammar.SrgsToken

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

Syntax

'Declaration
<SerializableAttribute> _
Public MustInherit Class SrgsElement _
    Inherits MarshalByRefObject
'Usage
Dim instance As SrgsElement
[SerializableAttribute]
public abstract class SrgsElement : MarshalByRefObject

Remarks

The SrgsElement class is the base class for the following classes, which correspond to elements defined in the Microsoft Recognition Grammar Specification (SRGS) Version 1.0:

An additional class inherits from SrgsElement and represents the text contained within the classes listed above:

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

SrgsElement Members

Microsoft.Speech.Recognition.SrgsGrammar Namespace