TypeBuilder.DefinePropertyCore 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 properti baru ke jenis , dengan nama yang diberikan, konvensi panggilan, tanda tangan properti, dan pengubah kustom.
protected:
abstract System::Reflection::Emit::PropertyBuilder ^ DefinePropertyCore(System::String ^ name, System::Reflection::PropertyAttributes attributes, System::Reflection::CallingConventions callingConvention, Type ^ returnType, cli::array <Type ^> ^ returnTypeRequiredCustomModifiers, cli::array <Type ^> ^ returnTypeOptionalCustomModifiers, cli::array <Type ^> ^ parameterTypes, cli::array <cli::array <Type ^> ^> ^ parameterTypeRequiredCustomModifiers, cli::array <cli::array <Type ^> ^> ^ parameterTypeOptionalCustomModifiers);
protected abstract System.Reflection.Emit.PropertyBuilder DefinePropertyCore (string name, System.Reflection.PropertyAttributes attributes, System.Reflection.CallingConventions callingConvention, Type returnType, Type[]? returnTypeRequiredCustomModifiers, Type[]? returnTypeOptionalCustomModifiers, Type[]? parameterTypes, Type[][]? parameterTypeRequiredCustomModifiers, Type[][]? parameterTypeOptionalCustomModifiers);
abstract member DefinePropertyCore : string * System.Reflection.PropertyAttributes * System.Reflection.CallingConventions * Type * Type[] * Type[] * Type[] * Type[][] * Type[][] -> System.Reflection.Emit.PropertyBuilder
Protected MustOverride Function DefinePropertyCore (name As String, attributes As PropertyAttributes, callingConvention As CallingConventions, returnType As Type, returnTypeRequiredCustomModifiers As Type(), returnTypeOptionalCustomModifiers As Type(), parameterTypes As Type(), parameterTypeRequiredCustomModifiers As Type()(), parameterTypeOptionalCustomModifiers As Type()()) As PropertyBuilder
Parameter
- name
- String
Nama properti. name
tidak boleh berisi null yang disematkan.
- attributes
- PropertyAttributes
Kombinasi bitwise dari nilai enumerasi yang menentukan atribut properti.
- callingConvention
- CallingConventions
Konvensi panggilan pengaktor properti.
- returnType
- Type
Jenis properti yang dikembalikan.
- returnTypeRequiredCustomModifiers
- Type[]
Array jenis yang mewakili pengubah kustom yang diperlukan
- returnTypeOptionalCustomModifiers
- Type[]
Array jenis yang mewakili pengubah kustom opsional
- parameterTypes
- Type[]
Jenis parameter metode.
- parameterTypeRequiredCustomModifiers
- Type[][]
Array jenis array. Setiap array jenis mewakili pengubah kustom yang diperlukan untuk parameter yang sesuai.
- parameterTypeOptionalCustomModifiers
- Type[][]
Array jenis array. Setiap array jenis mewakili pengubah kustom opsional untuk parameter yang sesuai.
Mengembalikan
Properti yang ditentukan.
Berlaku untuk
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk