TypeBuilder.DefinePropertyCore Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
При переопределении в производном классе добавляет к типу новое свойство с заданным именем, соглашением о вызовах, сигнатурой свойства и пользовательскими модификаторами.
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);
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
Параметры
- name
- String
Имя свойства. Параметр name
не может содержать внедренные значения NULL.
- attributes
- PropertyAttributes
Побитовое сочетание значений перечисления, указывающее атрибуты свойства .
- callingConvention
- CallingConventions
Соглашение о вызовах методов доступа свойства.
- returnType
- Type
Возвращаемый тип свойства.
- returnTypeRequiredCustomModifiers
- Type[]
Массив типов, представляющих необходимые настраиваемые модификаторы.
- returnTypeOptionalCustomModifiers
- Type[]
Массив типов, представляющих необязательные настраиваемые модификаторы
- parameterTypes
- Type[]
Типы параметров метода.
- parameterTypeRequiredCustomModifiers
- Type[][]
Массив массивов типов. Каждый массив типов представляет необходимые настраиваемые модификаторы для соответствующего параметра.
- parameterTypeOptionalCustomModifiers
- Type[][]
Массив массивов типов. Каждый массив типов представляет собой необязательные пользовательские модификаторы для соответствующего параметра.
Возвращаемое значение
Заданное свойство.