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.

C#
public static void CompileClassLibrary(System.Speech.Recognition.SrgsGrammar.SrgsDocument srgsGrammar, string outputPath, string[] referencedAssemblies, string keyFile);

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

.NET 10 (package-provided) ve diğer sürümler
Ürün Sürümler
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

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

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

Compiles multiple SRGS grammars into a DLL.

C#
public static void CompileClassLibrary(string[] inputPaths, string outputPath, string[] referencedAssemblies, string keyFile);

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

.NET 10 (package-provided) ve diğer sürümler
Ürün Sürümler
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

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

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

Compiles an SRGS grammar into a DLL.

C#
public static void CompileClassLibrary(System.Xml.XmlReader reader, string outputPath, string[] referencedAssemblies, string keyFile);

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

.NET 10 (package-provided) ve diğer sürümler
Ürün Sürümler
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)