Defines a design-time object that is used to build strongly-typed runtime grammars that conform to the Speech Recognition Grammar Specification (SRGS) Version 1.0.
Assembly: System.Speech (in System.Speech.dll)
Thetype exposes the following members.
|SrgsDocument()||Initializes a new instance of the class.|
|SrgsDocument(GrammarBuilder)||Initializes a new instance of the class from a GrammarBuilder object.|
|SrgsDocument(SrgsRule)||Initializes a new instance of the class and specifies an SrgsRule object to be the root rule of the grammar.|
|SrgsDocument(String)||Initializes a new instance of the class specifying the location of the XML document that is used to fill in the instance.|
|SrgsDocument(XmlReader)||Initializes a new instance of the class from an instance of XmlReader that references an XML-format grammar file.|
|AssemblyReferences||Gets the assembly reference information for the instance.|
|CodeBehind||Gets the code-behind information for the instance.|
|Culture||Gets or sets the culture information for the instance.|
|Debug||Gets or sets whether line numbers should be added to inline scripts.|
|ImportNamespaces||Gets the related namespaces for the current instance.|
|Language||Gets or sets the programming language used for inline code in the class.|
|Mode||Gets or sets the mode for the class.|
|Namespace||Gets or sets the namespace of the class.|
|PhoneticAlphabet||Gets or sets the phonetic alphabet of the class.|
|Root||Gets or sets the root rule of the class.|
|Rules||Gets the collection of rules that are currently defined for the class.|
|Script||Gets or sets the .NET scripting language for the class.|
|XmlBase||Gets or sets the base URI of the class.|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|WriteSrgs||Writes the contents of the object to an XML-format grammar file that conforms to the Speech Recognition Grammar Specification (SRGS) Version 1.0.|
You can you construct an empty instance and build a grammar by adding instances of classes that represent SRGS elements, such as SrgsRule, SrgsOneOf,SrgsItem, SrgsRuleRef, SrgsSemanticInterpretationTag, and SrgsToken. You can also construct an instance from an existing SRGS-compliant XML grammar file, from an instance of SrgsRule, or from an instance of GrammarBuilder.
See Create Grammars Using SrgsGrammar in the System Speech Programming Guide for .NET Framework 4.0 for more information and examples.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.