ICodeCompiler::CompileAssemblyFromDom Method (CompilerParameters^, CodeCompileUnit^)
.NET Framework (current version)
Compiles an assembly from the System.CodeDom tree contained in the specified CodeCompileUnit, using the specified compiler settings.
Assembly: System (in System.dll)
[PermissionSetAttribute(SecurityAction::LinkDemand, Name = "FullTrust")] [PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = "FullTrust")] CompilerResults^ CompileAssemblyFromDom( CompilerParameters^ options, CodeCompileUnit^ compilationUnit )
Parameters
- options
-
Type:
System.CodeDom.Compiler::CompilerParameters^
A CompilerParameters object that indicates the settings for compilation.
- compilationUnit
-
Type:
System.CodeDom::CodeCompileUnit^
A CodeCompileUnit that indicates the code to compile.
Return Value
Type: System.CodeDom.Compiler::CompilerResults^A CompilerResults object that indicates the results of compilation.
SecurityAction::LinkDemandSecurityAction::InheritanceDemand
for full trust for the immediate caller. This member cannot be used by partially trusted code.
for full trust for inheritors. This member cannot be inherited by partially trusted code.
.NET Framework
Available since 1.1
Available since 1.1
Show: