Share via


IsPublic Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets a value indicating whether this is a public method.

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

Syntax

'Declaration
Public ReadOnly Property IsPublic As Boolean
public bool IsPublic { get; }
public:
property bool IsPublic {
    bool get ();
}
member IsPublic : bool with get
function get IsPublic () : boolean

Property Value

Type: System. . :: . .Boolean
true if this method is public; otherwise, false.

Remarks

To get the MethodBase, first get the type. From the type, get the method. From the method, get the MethodBase. If the MethodBase or constructor is other than public, it is protected and cannot be readily accessed. To access a non-public method, set the BindingFlags mask to NonPublic in GetMethod.

.NET Framework Security

See Also

Reference

MethodBase Class

System.Reflection Namespace