Aracılığıyla paylaş


TypeBuilder.DefinePropertyCore Yöntem

Tanım

Türetilmiş bir sınıfta geçersiz kılındığında, türüne verilen ad, çağrı kuralı, özellik imzası ve özel değiştiricilerle yeni bir özellik ekler.

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

Parametreler

name
String

Özelliğin adı. name katıştırılmış null içeremez.

attributes
PropertyAttributes

Özelliğin özniteliklerini belirten numaralandırma değerlerinin bit düzeyinde birleşimi.

callingConvention
CallingConventions

Özellik erişimcilerinin çağrı kuralı.

returnType
Type

Özelliğinin dönüş türü.

returnTypeRequiredCustomModifiers
Type[]

Gerekli özel değiştiricileri temsil eden tür dizisi

returnTypeOptionalCustomModifiers
Type[]

İsteğe bağlı özel değiştiricileri temsil eden bir tür dizisi

parameterTypes
Type[]

Yöntemin parametrelerinin türleri.

parameterTypeRequiredCustomModifiers
Type[][]

Tür dizileri dizisi. Her tür dizisi, karşılık gelen parametre için gerekli özel değiştiricileri temsil eder.

parameterTypeOptionalCustomModifiers
Type[][]

Tür dizileri dizisi. Her tür dizisi, ilgili parametre için isteğe bağlı özel değiştiricileri temsil eder.

Döndürülenler

Tanımlı özellik.

Şunlara uygulanır