Share via


Grammar.Loaded Property

Ready only attribute, indicates if a Grammar has been loaded into a recognition engine.

Namespace: Microsoft.Speech.Recognition
Assembly: Microsoft.Speech (in microsoft.speech.dll)

Syntax

'Declaration

Property Value

Returns a bool value, true if the instance of Grammar has been loaded by a recognition engine (SpeechRecognizer or SpeechRecognitionEngine), false if it has not.

Remarks

Once a Grammar has been loaded, the values of Weight, and Priority cannot be changed.

Example

In the example below, the application checks to see if the Grammar is loaded before changing the Priority

if ( !_grammar.Loaded)){
    Grammar.Priority=5;
}

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

See Also

Reference

Grammar Class
Grammar Members
Microsoft.Speech.Recognition Namespace