Aracılığıyla paylaş


TypeBuilder.DefineConstructorCore Yöntem

Tanım

Türetilmiş bir sınıfta geçersiz kılındığında, belirtilen öznitelikler, imza ve özel değiştiricilerle türe yeni bir oluşturucu ekler.

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

Parametreler

attributes
MethodAttributes

Oluşturucunun özniteliklerini belirten numaralandırma değerlerinin bit düzeyinde birleşimi.

callingConvention
CallingConventions

Oluşturucunun çağırma kuralı.

parameterTypes
Type[]

Oluşturucunun parametre türleri.

requiredCustomModifiers
Type[][]

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

optionalCustomModifiers
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ımlanan oluşturucu.

Şunlara uygulanır