Grammar Class

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.

Represents the Grammar object used by the DtmfRecognizer or the SpeechRecognizer.

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

Syntax

'Declaration
<SpeechCustomMarkupSerializerAttribute> _
<DesignerSerializerAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.GrammarObjectSerializer, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", GetType(CodeDomSerializer))> _
<DebuggerDisplayAttribute("Grammar: {_uri != null ? " & ChrW(34) & "uri=" & ChrW(34) & " + _uri.ToString () : " & ChrW(34) & "SrgsDocument based" & ChrW(34) & "")> _
Public Class Grammar
[SpeechCustomMarkupSerializerAttribute] 
[DesignerSerializerAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.GrammarObjectSerializer, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", typeof(CodeDomSerializer))] 
[DebuggerDisplayAttribute("Grammar: {_uri != null ? \"uri=\" + _uri.ToString () : \"SrgsDocument based\"")] 
public class Grammar

Inheritance Hierarchy

System.Object
????Microsoft.SpeechServer.Recognition.Grammar

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

Grammar Members
Microsoft.SpeechServer.Recognition Namespace