共用方式為


AssemblyBuilder.DefineDynamicAssembly 方法

定義

定義動態組件。

多載

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess)

定義具有指定名稱和存取模式的動態組件。

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, IEnumerable<CustomAttributeBuilder>)

定義具有指定名稱、存取權和屬性的新組件。

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess)

來源:
AssemblyBuilder.cs
來源:
RuntimeAssemblyBuilder.cs
來源:
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>)

來源:
AssemblyBuilder.cs
來源:
RuntimeAssemblyBuilder.cs
來源:
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>

包含此組件屬性的集合。

傳回

代表新組件的物件。

適用於