Export (0) Print
Expand All

ICodeCompiler.CompileAssemblyFromSourceBatch Method

Compiles an assembly from the specified array of strings 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 CompileAssemblyFromSourceBatch(
	CompilerParameters options,
	string[] sources
)

Parameters

options
Type: System.CodeDom.Compiler.CompilerParameters

A CompilerParameters object that indicates the settings for compilation.

sources
Type: System.String[]

The source code strings to compile.

Return Value

Type: System.CodeDom.Compiler.CompilerResults
A CompilerResults object that indicates the results of compilation.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Show:
© 2015 Microsoft