Condividi tramite


CodeCompiler.FromFile(CompilerParameters, String) Metodo

Definizione

Compila il file specificato utilizzando le opzioni selezionate e restituisce i risultati della compilazione.

protected:
 virtual System::CodeDom::Compiler::CompilerResults ^ FromFile(System::CodeDom::Compiler::CompilerParameters ^ options, System::String ^ fileName);
protected virtual System.CodeDom.Compiler.CompilerResults FromFile (System.CodeDom.Compiler.CompilerParameters options, string fileName);
abstract member FromFile : System.CodeDom.Compiler.CompilerParameters * string -> System.CodeDom.Compiler.CompilerResults
override this.FromFile : System.CodeDom.Compiler.CompilerParameters * string -> System.CodeDom.Compiler.CompilerResults
Protected Overridable Function FromFile (options As CompilerParameters, fileName As String) As CompilerResults

Parametri

options
CompilerParameters

Oggetto CompilerParameters che indica le opzioni del compilatore.

fileName
String

Nome del file da compilare.

Restituisce

Risultati della compilazione.

Eccezioni

options è null.

-oppure-

fileName è null.

Si applica a

Vedi anche