다음을 통해 공유


SrgsGrammarCompiler.CompileClassLibrary Method

Definition

Compiles an SRGS document into a DLL.

Overloads

CompileClassLibrary(SrgsDocument, String, String[], String)

Compiles an SRGS document into a DLL.

CompileClassLibrary(String[], String, String[], String)

Compiles multiple SRGS grammars into a DLL.

CompileClassLibrary(XmlReader, String, String[], String)

Compiles an SRGS grammar into a DLL.

CompileClassLibrary(SrgsDocument, String, String[], String)

Source:
SrgsGrammarCompiler.cs
Source:
SrgsGrammarCompiler.cs
Source:
SrgsGrammarCompiler.cs

Compiles an SRGS document into a DLL.

public:
 static void CompileClassLibrary(System::Speech::Recognition::SrgsGrammar::SrgsDocument ^ srgsGrammar, System::String ^ outputPath, cli::array <System::String ^> ^ referencedAssemblies, System::String ^ keyFile);
public static void CompileClassLibrary (System.Speech.Recognition.SrgsGrammar.SrgsDocument srgsGrammar, string outputPath, string[] referencedAssemblies, string keyFile);
static member CompileClassLibrary : System.Speech.Recognition.SrgsGrammar.SrgsDocument * string * string[] * string -> unit
Public Shared Sub CompileClassLibrary (srgsGrammar As SrgsDocument, outputPath As String, referencedAssemblies As String(), keyFile As String)

Parameters

srgsGrammar
SrgsDocument

The SrgsDocument that contains the grammar to compile.

outputPath
String

The path of the output DLL.

referencedAssemblies
String[]

A list of the assemblies referenced from the input grammars.

keyFile
String

The name of the file that contains a pair of keys, thereby enabling the output DLL to be signed.

Exceptions

srgsGrammar is null.

outputPath is null.

outputPath is an empty string.

Applies to

CompileClassLibrary(String[], String, String[], String)

Source:
SrgsGrammarCompiler.cs
Source:
SrgsGrammarCompiler.cs
Source:
SrgsGrammarCompiler.cs

Compiles multiple SRGS grammars into a DLL.

public:
 static void CompileClassLibrary(cli::array <System::String ^> ^ inputPaths, System::String ^ outputPath, cli::array <System::String ^> ^ referencedAssemblies, System::String ^ keyFile);
public static void CompileClassLibrary (string[] inputPaths, string outputPath, string[] referencedAssemblies, string keyFile);
static member CompileClassLibrary : string[] * string * string[] * string -> unit
Public Shared Sub CompileClassLibrary (inputPaths As String(), outputPath As String, referencedAssemblies As String(), keyFile As String)

Parameters

inputPaths
String[]

A list of the grammars to compile.

outputPath
String

The path of the output DLL.

referencedAssemblies
String[]

A list of the assemblies referenced from the input grammars.

keyFile
String

The name of the file that contains a pair of keys, thereby enabling the output DLL to be signed.

Exceptions

inputPaths is null.

outputPath is null.

outputPath is an empty string.

Any element of the inputPaths array is null.

Applies to

CompileClassLibrary(XmlReader, String, String[], String)

Source:
SrgsGrammarCompiler.cs
Source:
SrgsGrammarCompiler.cs
Source:
SrgsGrammarCompiler.cs

Compiles an SRGS grammar into a DLL.

public:
 static void CompileClassLibrary(System::Xml::XmlReader ^ reader, System::String ^ outputPath, cli::array <System::String ^> ^ referencedAssemblies, System::String ^ keyFile);
public static void CompileClassLibrary (System.Xml.XmlReader reader, string outputPath, string[] referencedAssemblies, string keyFile);
static member CompileClassLibrary : System.Xml.XmlReader * string * string[] * string -> unit
Public Shared Sub CompileClassLibrary (reader As XmlReader, outputPath As String, referencedAssemblies As String(), keyFile As String)

Parameters

reader
XmlReader

The XmlReader that reads the grammar.

outputPath
String

The path of the output DLL.

referencedAssemblies
String[]

A list of the assemblies referenced from the input grammars.

keyFile
String

The name of the file that contains a pair of keys, thereby enabling the output DLL to be signed.

Exceptions

reader is null.

outputPath is null.

outputPath is an empty string.

Applies to