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: Microsoft.Speech (in Microsoft.Speech.dll)
'Declaration <SerializableAttribute> _ Public NotInheritable Class SrgsDocument 'Usage Dim instance As SrgsDocument
[SerializableAttribute] public sealed class SrgsDocument
You can you construct an empty SrgsDocument 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 SrgsDocument 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 (Microsoft.Speech) for more information and examples.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.