_MethodBase.IsPrivate 属性

定义

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

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

属性值

Boolean

如果对此方法的访问只限于该类本身的其他成员,则为 true;否则为 falsetrue if access to this method is restricted to other members of the class itself; otherwise, false.

注解

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

IsPrivate属性获取一个值,该值指示此成员是否为私有成员。The IsPrivate property gets a value indicating whether this member is private.

适用于