TypeBuilder.DefineConstructorCore 方法

定義

在衍生類別中覆寫時,使用指定的屬性、簽章和自訂修飾詞,將新的建構函式新增至型別。

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

參數

attributes
MethodAttributes

列舉值的位元組合,指定建構函式的屬性。

callingConvention
CallingConventions

建構函式的呼叫慣例。

parameterTypes
Type[]

建構函式的參數類型。

requiredCustomModifiers
Type[][]

類型陣列的陣列。 每個類型的陣列都代表對應參數的必要自訂修飾詞。

optionalCustomModifiers
Type[][]

類型陣列的陣列。 每一個型別陣列都表示對應參數的選擇性自訂修飾詞。

傳回

定義的建構函式。

適用於