TypeBuilder.DefineConstructorCore Метод

Определение

При переопределении в производном классе добавляет в тип новый конструктор с заданными атрибутами, сигнатурой и настраиваемыми модификаторами.

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

Параметры

attributes
MethodAttributes

Побитовое сочетание значений перечисления, указывающее атрибуты конструктора.

callingConvention
CallingConventions

Соглашение о вызовах конструктора.

parameterTypes
Type[]

Типы параметров конструктора.

requiredCustomModifiers
Type[][]

Массив массивов типов. Каждый массив типов представляет необходимые настраиваемые модификаторы для соответствующего параметра.

optionalCustomModifiers
Type[][]

Массив массивов типов. Каждый массив типов представляет собой необязательные пользовательские модификаторы для соответствующего параметра.

Возвращаемое значение

Определенный конструктор.

Применяется к