SrgsGrammarCompiler.Compile Method (XmlReader, Stream)

Compiles a grammar to a file.

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

Syntax

'Declaration




Parameters

  • reader
    The XmlReader that reads the grammar. The grammar can reside in a physical file or in memory.
  • outputStream
    The stream that will receive the results of compilation.

Exceptions

Exception type Condition
ArgumentNullException

reader is null.

outputStream is null.

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

SrgsGrammarCompiler Class
SrgsGrammarCompiler Members
Microsoft.Speech.Recognition.SrgsGrammar Namespace