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

定義

使用指定的選項編譯指定檔案,並回傳編譯結果。

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

參數

options
CompilerParameters

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

fileNames
String[]

一個字串陣列,表示要編譯的檔案名稱。

傳回

彙整結果。

例外狀況

optionsnull

-或-

fileNamesnull

適用於

另請參閱