共用方式為


CodeCompiler.ICodeCompiler.CompileAssemblyFromSourceBatch 方法

定義

如需這個成員的說明,請參閱 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 物件,表示編譯器選項。

sources
String[]

字串的陣列,表示要編譯的原始程式碼。

傳回

編譯的結果。

實作

例外狀況

optionsnull

備註

這個成員是明確介面成員實作, 只有在 CodeCompiler 執行個體轉換成 ICodeCompiler 介面時,才能使用這個成員。

適用於