MethodBase.IsPrivate Property

May 11, 2014

Gets a value that indicates whether this member is private.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

public bool IsPrivate { get; }

Property Value

Type: System.Boolean
true if access to this method is restricted to other members of the class; otherwise, false.

If a type member has Private level visibility, it can be called from any member in the same class and no others.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft