AssemblyBuilder.DefineDynamicAssembly Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendefinisikan rakitan dinamis.
Overload
DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess) |
Menentukan rakitan dinamis yang memiliki nama dan hak akses yang ditentukan. |
DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, IEnumerable<CustomAttributeBuilder>) |
Menentukan rakitan baru yang memiliki nama, hak akses, dan atribut yang ditentukan. |
DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess)
- Sumber:
- AssemblyBuilder.cs
- Sumber:
- RuntimeAssemblyBuilder.cs
- Sumber:
- RuntimeAssemblyBuilder.cs
Menentukan rakitan dinamis yang memiliki nama dan hak akses yang ditentukan.
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
Parameter
- name
- AssemblyName
Nama perakitan.
- access
- AssemblyBuilderAccess
Hak akses perakitan.
Mengembalikan
Objek yang mewakili rakitan baru.
Berlaku untuk
DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, IEnumerable<CustomAttributeBuilder>)
- Sumber:
- AssemblyBuilder.cs
- Sumber:
- RuntimeAssemblyBuilder.cs
- Sumber:
- RuntimeAssemblyBuilder.cs
Menentukan rakitan baru yang memiliki nama, hak akses, dan atribut yang ditentukan.
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
Parameter
- name
- AssemblyName
Nama perakitan.
- access
- AssemblyBuilderAccess
Hak akses perakitan.
- assemblyAttributes
- IEnumerable<CustomAttributeBuilder>
Koleksi yang berisi atribut assembly.
Mengembalikan
Objek yang mewakili rakitan baru.