SrgsGrammarCompiler.Compile Method (String, Stream)

Compiles a grammar to a file.

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

Syntax

'Declaration




Parameters

  • inputPath
    The path of the file to compile.
  • outputStream
    The stream that receives the results of compilation.

Exceptions

Exception type Condition
ArgumentNullException

inputPath is null.

outputStream is null.

ArgumentException

inputPath is an empty string.

Remarks

When accessing files, a security check is performed when the file is created or opened. The security check is typically not done again unless the file is closed and reopened.

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