Bagikan melalui


Note

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

SrgsDocument Constructor

Include Protected Members
Include Inherited Members

Initializes a new instance of the SrgsDocument class.

Overload List

  Name Description
Public method SrgsDocument() Initializes a new instance of the SrgsDocument class.
Public method SrgsDocument(String) Initializes a new instance of the SrgsDocument class specifying the location of the XML document that is used to fill in the SrgsDocument instance.
Public method SrgsDocument(XmlReader) Initializes a new instance of the SrgsDocument class from an instance of XmlReader that references an XML-format grammar file.
Public method SrgsDocument(GrammarBuilder) Initializes a new instance of the SrgsDocument class from a GrammarBuilder object.
Public method SrgsDocument(SrgsRule) Initializes a new instance of the SrgsDocument class and specifies an SrgsRule object to be the root rule of the grammar.

Top

Remarks

Using the constructors for the SrgsDocument class, you can create an instance of SrgsDocument from a GrammarBuilder, SrgsRule, or XmlReader object, from a string that contains the path to an XML-format grammar, or you can initiate a blank instance of SrgsDocument.

See Also

Reference

SrgsDocument Class

SrgsDocument Members

Microsoft.Speech.Recognition.SrgsGrammar Namespace