TypeBuilder.DefineConstructorCore 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.
Saat ditimpa di kelas turunan, menambahkan konstruktor baru ke jenis , dengan atribut, tanda tangan, dan pengubah kustom yang diberikan.
protected:
abstract System::Reflection::Emit::ConstructorBuilder ^ DefineConstructorCore(System::Reflection::MethodAttributes attributes, System::Reflection::CallingConventions callingConvention, cli::array <Type ^> ^ parameterTypes, cli::array <cli::array <Type ^> ^> ^ requiredCustomModifiers, cli::array <cli::array <Type ^> ^> ^ optionalCustomModifiers);
protected abstract System.Reflection.Emit.ConstructorBuilder DefineConstructorCore (System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, Type[]? parameterTypes, Type[][]? requiredCustomModifiers, Type[][]? optionalCustomModifiers);
abstract member DefineConstructorCore : System.Reflection.MethodAttributes * System.Reflection.CallingConventions * Type[] * Type[][] * Type[][] -> System.Reflection.Emit.ConstructorBuilder
Protected MustOverride Function DefineConstructorCore (attributes As MethodAttributes, callingConvention As CallingConventions, parameterTypes As Type(), requiredCustomModifiers As Type()(), optionalCustomModifiers As Type()()) As ConstructorBuilder
Parameter
- attributes
- MethodAttributes
Kombinasi bitwise dari nilai enumerasi yang menentukan atribut konstruktor.
- callingConvention
- CallingConventions
Konvensi pemanggilan konstruktor.
- parameterTypes
- Type[]
Jenis parameter konstruktor.
- requiredCustomModifiers
- Type[][]
Array jenis. Setiap array jenis mewakili pengubah kustom yang diperlukan untuk parameter yang sesuai.
- optionalCustomModifiers
- Type[][]
Array jenis. Setiap array jenis mewakili pengubah kustom opsional untuk parameter yang sesuai.
Mengembalikan
Konstruktor yang ditentukan.