The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Grammar::Loaded Property
.NET Framework (current version)
Gets whether a Grammar has been loaded by a speech recognizer.
Assembly: System.Speech (in System.Speech.dll)
Property Value
Type: System::BooleanThe Loaded property returns true if the referenced speech recognition grammar is currently loaded in a speech recognizer; otherwise the property returns false. The default is false.
private static void DumpGrammarStatus(Grammar item) { Console.WriteLine("Grammar name is {0}:", item.Name); Console.WriteLine(" The Grammar {0} loaded.", item.Loaded ? "is" : "is not"); Console.WriteLine(" The Grammar {0} enabled.", item.Enabled ? "is" : "is not"); if (item.RuleName != null) { Console.WriteLine(" The root rule is {0}.", item.RuleName); } else { Console.WriteLine(" The Grammar does not specify a root rule."); } }
.NET Framework
Available since 3.0
Available since 3.0
Show: