MethodBase.IsPrivate MethodBase.IsPrivate MethodBase.IsPrivate MethodBase.IsPrivate Property

定义

获取一个值,该值指示此成员是否是私有的。Gets a value indicating whether this member is private.

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

属性值

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

实现

注解

如果类型成员具有Private级别可见性,则可以从同一类中的任何成员进行调用,而无其他成员。If a type member has Private level visibility, it can be called from any member in the same class and no others.

适用于

另请参阅