MethodBase.IsPrivate Property

Definition

获取一个值,该值指示此成员是否是私有的。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

Property Value

Boolean

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

Implements

Remarks

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

Applies to

See also