Difference between revisions of "MemberInfo.IsPublic"

From Xojo Documentation

(Example)
 
Line 4: Line 4:
 
| ownertype=class
 
| ownertype=class
 
| scope=public
 
| scope=public
 +
| readonly=yes
 
| type=[[Boolean]]
 
| type=[[Boolean]]
 
| platform=all
 
| platform=all

Latest revision as of 15:13, 15 July 2020

Read-Only Property (As Boolean )
BooleanValue = aMemberInfo.IsPublic

New in 2008r3

Supported for all project types and targets.

If True, the item has Public scope.

Example

This example checks the IsPublic property before taking an action.

Var d As New Date
For Each prop As Introspection.PropertyInfo In Introspection.GetType(d).GetProperties
If prop.IsPublic Then
// take an action here..
End If
Next