AssemblyBuilder.DefineDynamicAssembly 方法

定义

定义动态程序集。

重载

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess)

定义具有指定名称和访问权限的动态程序集。

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, IEnumerable<CustomAttributeBuilder>)

定义具有指定名称、访问权限和属性的新程序集。

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess)

Source:
AssemblyBuilder.cs
Source:
RuntimeAssemblyBuilder.cs
Source:
RuntimeAssemblyBuilder.cs

定义具有指定名称和访问权限的动态程序集。

public:
 static System::Reflection::Emit::AssemblyBuilder ^ DefineDynamicAssembly(System::Reflection::AssemblyName ^ name, System::Reflection::Emit::AssemblyBuilderAccess access);
public static System.Reflection.Emit.AssemblyBuilder DefineDynamicAssembly (System.Reflection.AssemblyName name, System.Reflection.Emit.AssemblyBuilderAccess access);
static member DefineDynamicAssembly : System.Reflection.AssemblyName * System.Reflection.Emit.AssemblyBuilderAccess -> System.Reflection.Emit.AssemblyBuilder
Public Shared Function DefineDynamicAssembly (name As AssemblyName, access As AssemblyBuilderAccess) As AssemblyBuilder

参数

name
AssemblyName

程序集的名称。

access
AssemblyBuilderAccess

程序集的访问权限。

返回

表示新程序集的对象。

适用于

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, IEnumerable<CustomAttributeBuilder>)

Source:
AssemblyBuilder.cs
Source:
RuntimeAssemblyBuilder.cs
Source:
RuntimeAssemblyBuilder.cs

定义具有指定名称、访问权限和属性的新程序集。

public:
 static System::Reflection::Emit::AssemblyBuilder ^ DefineDynamicAssembly(System::Reflection::AssemblyName ^ name, System::Reflection::Emit::AssemblyBuilderAccess access, System::Collections::Generic::IEnumerable<System::Reflection::Emit::CustomAttributeBuilder ^> ^ assemblyAttributes);
public static System.Reflection.Emit.AssemblyBuilder DefineDynamicAssembly (System.Reflection.AssemblyName name, System.Reflection.Emit.AssemblyBuilderAccess access, System.Collections.Generic.IEnumerable<System.Reflection.Emit.CustomAttributeBuilder>? assemblyAttributes);
public static System.Reflection.Emit.AssemblyBuilder DefineDynamicAssembly (System.Reflection.AssemblyName name, System.Reflection.Emit.AssemblyBuilderAccess access, System.Collections.Generic.IEnumerable<System.Reflection.Emit.CustomAttributeBuilder> assemblyAttributes);
static member DefineDynamicAssembly : System.Reflection.AssemblyName * System.Reflection.Emit.AssemblyBuilderAccess * seq<System.Reflection.Emit.CustomAttributeBuilder> -> System.Reflection.Emit.AssemblyBuilder
Public Shared Function DefineDynamicAssembly (name As AssemblyName, access As AssemblyBuilderAccess, assemblyAttributes As IEnumerable(Of CustomAttributeBuilder)) As AssemblyBuilder

参数

name
AssemblyName

程序集的名称。

access
AssemblyBuilderAccess

程序集的访问权限。

assemblyAttributes
IEnumerable<CustomAttributeBuilder>

包含程序集属性的集合。

返回

表示新程序集的对象。

适用于