_MethodBase.IsConstructor _MethodBase.IsConstructor _MethodBase.IsConstructor _MethodBase.IsConstructor Property

定义

为 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

属性值

如果此方法为构造函数,则为 true;否则为 falsetrue if this method is a constructor; otherwise, false.

注解

此属性用于从非托管代码访问托管类,不应从托管代码调用。This property 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.

适用于