SrgsDocument Constructor

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

Initializes a new instance of the SrgsDocument class.

Overload List

  NameDescription
Public methodSrgsDocument()()()()Initializes a new instance of the SrgsDocument class.
Public methodSrgsDocument(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 methodSrgsDocument(XmlReader)Initializes a new instance of the SrgsDocument class from an instance of XmlReader that references an XML-format grammar file.
Public methodSrgsDocument(GrammarBuilder)Initializes a new instance of the SrgsDocument class from a GrammarBuilder object.
Public methodSrgsDocument(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