ICodeCompiler.CompileAssemblyFromSourceBatch 方法

定義

從指定的字串陣列編譯組譯,並使用指定的編譯器設定。

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 指示編譯設定的物件。

sources
String[]

要編譯的原始碼字串。

傳回

一個 CompilerResults 表示編譯結果的物件。

適用於

另請參閱