TypeBuilder.DefinePropertyCore Método

Definición

Cuando se reemplaza en una clase derivada, agrega una nueva propiedad al tipo , con el nombre especificado, la convención de llamada, la firma de propiedad y los modificadores personalizados.

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

Parámetros

name
String

Nombre de la propiedad. name no puede contener valores null insertados.

attributes
PropertyAttributes

Combinación bit a bit de los valores de enumeración que especifica los atributos de la propiedad .

callingConvention
CallingConventions

Convención de llamada de los descriptores de acceso de la propiedad.

returnType
Type

Tipo de valor devuelto de la propiedad.

returnTypeRequiredCustomModifiers
Type[]

Matriz de tipos que representan los modificadores personalizados necesarios.

returnTypeOptionalCustomModifiers
Type[]

Matriz de tipos que representan los modificadores personalizados opcionales

parameterTypes
Type[]

Tipos de los parámetros del método.

parameterTypeRequiredCustomModifiers
Type[][]

Matriz de matrices de tipos. Cada matriz de tipos representa los modificadores personalizados necesarios para el parámetro correspondiente.

parameterTypeOptionalCustomModifiers
Type[][]

Matriz de matrices de tipos. Cada matriz de tipos representa los modificadores personalizados opcionales para el parámetro correspondiente.

Devoluciones

Propiedad definida.

Se aplica a