Share via


TypeBuilder.DefineConstructorCore Metoda

Definice

Při přepsání v odvozené třídě přidá do typu nový konstruktor s danými atributy, podpisem a vlastními modifikátory.

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

Parametry

attributes
MethodAttributes

Bitové kombinace hodnot výčtu, která určuje atributy konstruktoru.

callingConvention
CallingConventions

Konvence volání konstruktoru.

parameterTypes
Type[]

Typy parametrů konstruktoru.

requiredCustomModifiers
Type[][]

Pole polí typů. Každé pole typů představuje požadované vlastní modifikátory odpovídajícího parametru.

optionalCustomModifiers
Type[][]

Pole polí typů. Každé pole typů představuje volitelné vlastní modifikátory odpovídajícího parametru.

Návraty

Definovaný konstruktor.

Platí pro