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

定义

有关此成员的说明,请参见 CompileAssemblyFromSourceBatch(CompilerParameters, String[])For a description of this member, see CompileAssemblyFromSourceBatch(CompilerParameters, String[]).

 virtual System::CodeDom::Compiler::CompilerResults ^ System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(System::CodeDom::Compiler::CompilerParameters ^ options, cli::array <System::String ^> ^ sources) = System::CodeDom::Compiler::ICodeCompiler::CompileAssemblyFromSourceBatch;
System.CodeDom.Compiler.CompilerResults ICodeCompiler.CompileAssemblyFromSourceBatch (System.CodeDom.Compiler.CompilerParameters options, string[] sources);
abstract member System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch : System.CodeDom.Compiler.CompilerParameters * string[] -> System.CodeDom.Compiler.CompilerResults
override this.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch : System.CodeDom.Compiler.CompilerParameters * string[] -> System.CodeDom.Compiler.CompilerResults
Function CompileAssemblyFromSourceBatch (options As CompilerParameters, sources As String()) As CompilerResults Implements ICodeCompiler.CompileAssemblyFromSourceBatch

参数

options
CompilerParameters

一个指示编译器选项的 CompilerParameters 对象。A CompilerParameters object that indicates the compiler options.

sources
String[]

指示要编译的源代码的字符串数组。An array of strings that indicates the source code to compile.

返回

CompilerResults

编译的结果。The results of compilation.

实现

例外

optionsnulloptions is null.

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 CodeCompiler 实例被强制转换为 ICodeCompiler 接口时使用。It can be used only when the CodeCompiler instance is cast to an ICodeCompiler interface.

适用于