CodeCompiler.FromFile(CompilerParameters, String) Método

Definição

Compila o arquivo especificado usando as opções especificadas e retorna os resultados da compilação.Compiles the specified file using the specified options, and returns the results from the compilation.

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

Parâmetros

options
CompilerParameters

Um objeto CompilerParameters que indica as opções do compilador.A CompilerParameters object that indicates the compiler options.

fileName
String

O nome de arquivo a compilar.The file name to compile.

Retornos

CompilerResults

Os resultados da compilação.The results of compilation.

Exceções

options é null.options is null.

- ou --or- fileName é null.fileName is null.

Aplica-se a

Confira também