Compartir a través de


MethodBase.IsPrivate Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a value that indicates whether this member is private.

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

Syntax

'Declaration
Public ReadOnly Property IsPrivate As Boolean
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.

Remarks

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

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.