_MethodBase.IsStatic _MethodBase.IsStatic _MethodBase.IsStatic _MethodBase.IsStatic Property

定义

为 COM 对象提供对 IsStatic 属性的与版本无关的访问。Provides COM objects with version-independent access to the IsStatic property.

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

属性值

如果方法为 static,则为 true;否则为 falsetrue if this method is static; otherwise, false.

注解

此属性用于从非托管代码访问托管类,不应从托管代码调用。This property is for access to managed classes from unmanaged code and should not be called from managed code.

属性获取一个值,该值指示方法是否为staticIsStaticThe IsStatic property gets a value indicating whether the method is static.

适用于