ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters, String[]) 方法

定义

从包含源代码的字符串的指定数组,使用指定的编译器设置编译程序集。Compiles an assembly from the specified array of strings containing source code, using the specified compiler settings.

public:
 System::CodeDom::Compiler::CompilerResults ^ CompileAssemblyFromSourceBatch(System::CodeDom::Compiler::CompilerParameters ^ options, cli::array <System::String ^> ^ sources);
public System.CodeDom.Compiler.CompilerResults CompileAssemblyFromSourceBatch (System.CodeDom.Compiler.CompilerParameters options, string[] sources);
abstract member CompileAssemblyFromSourceBatch : System.CodeDom.Compiler.CompilerParameters * string[] -> System.CodeDom.Compiler.CompilerResults
Public Function CompileAssemblyFromSourceBatch (options As CompilerParameters, sources As String()) As CompilerResults

参数

options
CompilerParameters

一个 CompilerParameters 对象,它指示编译设置。A CompilerParameters object that indicates the settings for compilation.

sources
String[]

要编译的源代码字符串。The source code strings to compile.

返回

CompilerResults

指示编译结果的 CompilerResults 对象。A CompilerResults object that indicates the results of compilation.

适用于

另请参阅