Share via


TypeBuilder.DefinePropertyCore Metodo

Definizione

Quando ne viene eseguito l'override in una classe derivata, aggiunge una nuova proprietà al tipo, con il nome specificato, la convenzione di chiamata, la firma della proprietà e i modificatori personalizzati.

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

Parametri

name
String

Nome della proprietà. name non può contenere valori Null incorporati.

attributes
PropertyAttributes

Combinazione bit per bit dei valori di enumerazione che specifica gli attributi della proprietà.

callingConvention
CallingConventions

Convenzione di chiamata delle funzioni di accesso della proprietà.

returnType
Type

Tipo restituito della proprietà.

returnTypeRequiredCustomModifiers
Type[]

Matrice di tipi che rappresentano i modificatori personalizzati necessari

returnTypeOptionalCustomModifiers
Type[]

Matrice di tipi che rappresentano i modificatori personalizzati facoltativi

parameterTypes
Type[]

Tipi dei parametri del metodo.

parameterTypeRequiredCustomModifiers
Type[][]

Matrice di matrici di tipi. Ogni matrice di tipi rappresenta i modificatori personalizzati necessari per il parametro corrispondente.

parameterTypeOptionalCustomModifiers
Type[][]

Matrice di matrici di tipi. Ciascuna matrice di tipi rappresenta i modificatori personalizzati opzionali per il parametro corrispondente.

Restituisce

Proprietà definita.

Si applica a