CodeCompiler.FromSource Method (CompilerParameters, String)

 

Compiles the specified source code string using the specified options, and returns the results from the compilation.

Namespace:   System.CodeDom.Compiler
Assembly:  System (in System.dll)

protected virtual CompilerResults FromSource(
	CompilerParameters options,
	string source
)

Parameters

options
Type: System.CodeDom.Compiler.CompilerParameters

A CompilerParameters object that indicates the compiler options.

source
Type: System.String

The source code string to compile.

Return Value

Type: System.CodeDom.Compiler.CompilerResults

The results of compilation.

Exception Condition
ArgumentNullException

options is null.

.NET Framework
Available since 1.1
Return to top
Show: