Bagikan melalui


TypeBuilder.DefinePropertyCore Metode

Definisi

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