TypeBuilder.DefineDefaultConstructorCore(MethodAttributes) 方法

定義

在衍生類別中覆寫時,定義無參數建構函式。 這裡定義的建構函式會呼叫父代的無參數建構函式。

protected:
 abstract System::Reflection::Emit::ConstructorBuilder ^ DefineDefaultConstructorCore(System::Reflection::MethodAttributes attributes);
protected abstract System.Reflection.Emit.ConstructorBuilder DefineDefaultConstructorCore (System.Reflection.MethodAttributes attributes);
abstract member DefineDefaultConstructorCore : System.Reflection.MethodAttributes -> System.Reflection.Emit.ConstructorBuilder
Protected MustOverride Function DefineDefaultConstructorCore (attributes As MethodAttributes) As ConstructorBuilder

參數

attributes
MethodAttributes

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

傳回

建構函式。

適用於