Share via


SrgsGrammarCompiler.Compile Method (SrgsDocument, Stream)

Compiles an SRGS document to a file.

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

Syntax

'Declaration

Parameters

  • srgsGrammar
    The grammar to compile.
  • outputStream
    The stream that receives the results of compilation.

Exceptions

Exception type Condition
ArgumentNullException

srgsGrammar 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