AssemblyBuilder::DefineDynamicAssembly Method (AssemblyName^, AssemblyBuilderAccess, IEnumerable<CustomAttributeBuilder^>^)

.NET Framework (current version)
 

Defines a new assembly that has the specified name, access rights, and attributes.

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public:
static AssemblyBuilder^ DefineDynamicAssembly(
	AssemblyName^ name,
	AssemblyBuilderAccess access,
	IEnumerable<CustomAttributeBuilder^>^ assemblyAttributes
)

Parameters

name
Type: System.Reflection::AssemblyName^

The name of the assembly.

access
Type: System.Reflection.Emit::AssemblyBuilderAccess

The access rights of the assembly.

assemblyAttributes
Type: System.Collections.Generic::IEnumerable<CustomAttributeBuilder^>^

A collection that contains the attributes of the assembly.

Return Value

Type: System.Reflection.Emit::AssemblyBuilder^

An object that represents the new assembly.

.NET Framework
Available since 4.5
Return to top
Show: