_ConstructorInfo.IsConstructor 屬性

定義

為 COM 物件提供與版本無關的 IsConstructor 屬性之存取權。Provides COM objects with version-independent access to the IsConstructor property.

public:
 property bool IsConstructor { bool get(); };
public bool IsConstructor { get; }
member this.IsConstructor : bool
Public ReadOnly Property IsConstructor As Boolean

屬性值

Boolean

如果方法為建構函示,則為 true,否則為 falsetrue if this method is a constructor; otherwise, false.

備註

這個方法是用來從非受控程式碼存取 managed 類別,而且不應該從 managed 程式碼呼叫。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

IsConstructor屬性會取得一個值,指出此方法是否為函式。The IsConstructor property gets a value indicating whether the method is a constructor.

適用於