CodeCompiler.FromSourceBatch(CompilerParameters, String[]) Metod

Definition

Kompilerar de angivna källkodssträngarna med de angivna alternativen och returnerar resultatet från kompilering.

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

Parametrar

options
CompilerParameters

Ett CompilerParameters objekt som anger kompilatoralternativen.

sources
String[]

En matris med strängar som innehåller källkoden som ska kompileras.

Returer

Resultatet av kompilering.

Undantag

options är null.

-eller-

sources är null.

Gäller för

Se även