TypeBuilder.DefineConstructorCore 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在衍生類別中覆寫時,使用指定的屬性、簽章和自定義修飾詞,將新的建構函式新增至型別。
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[][]
類型陣列的陣列。 每一個型別陣列都表示對應參數的選擇性自訂修飾詞。
傳回
定義的建構函式。