CodeCompiler.FromSourceBatch(CompilerParameters, String[]) 方法

定義

利用指定的選項編譯指定的原始碼字串,並回傳編譯結果。

protected:
 virtual System::CodeDom::Compiler::CompilerResults ^ FromSourceBatch(System::CodeDom::Compiler::CompilerParameters ^ options, cli::array <System::String ^> ^ sources);
protected virtual System.CodeDom.Compiler.CompilerResults FromSourceBatch(System.CodeDom.Compiler.CompilerParameters options, string[] sources);
abstract member FromSourceBatch : System.CodeDom.Compiler.CompilerParameters * string[] -> System.CodeDom.Compiler.CompilerResults
override this.FromSourceBatch : System.CodeDom.Compiler.CompilerParameters * string[] -> System.CodeDom.Compiler.CompilerResults
Protected Overridable Function FromSourceBatch (options As CompilerParameters, sources As String()) As CompilerResults

參數

options
CompilerParameters

一個 CompilerParameters 指示編譯器選項的物件。

sources
String[]

一組包含要編譯的原始碼的字串陣列。

傳回

彙整結果。

例外狀況

optionsnull

-或-

sourcesnull

適用於

另請參閱