ICodeCompiler::CompileAssemblyFromSource Method (CompilerParameters^, String^)

 

Compiles an assembly from the specified string containing source code, using the specified compiler settings.

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

[PermissionSetAttribute(SecurityAction::LinkDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = "FullTrust")]
CompilerResults^ CompileAssemblyFromSource(
	CompilerParameters^ options,
	String^ source
)

Parameters

options
Type: System.CodeDom.Compiler::CompilerParameters^

A CompilerParameters object that indicates the settings for compilation.

source
Type: System::String^

The source code to compile.

Return Value

Type: System.CodeDom.Compiler::CompilerResults^

A CompilerResults object that indicates the results of compilation.

SecurityAction::LinkDemand

for full trust for the immediate caller. This member cannot be used by partially trusted code.

SecurityAction::InheritanceDemand

for full trust for inheritors. This member cannot be inherited by partially trusted code.

.NET Framework
Available since 1.1
Return to top
Show: