Share via


RecognizedPhrase.Grammar Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Gets the grammar associated with a recognized phrase.

Namespace: Microsoft.SpeechServer.Recognition
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)

Syntax

'Declaration
Public ReadOnly Property Grammar As Grammar
public Grammar Grammar { get; }

Property Value

The Grammar object that was used to recognize the phrase.

Exceptions

Exception type Condition
NotSupportedException

The grammar does not have a valid ID.

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

Windows Server 2003

See Also

Reference

RecognizedPhrase Class
RecognizedPhrase Members
Microsoft.SpeechServer.Recognition Namespace