PropertyInfo.CanRead

From Xojo Documentation

Property (As Boolean )
aPropertyInfo.CanRead = newBooleanValue
or
BooleanValue = aPropertyInfo.CanRead

Supported for all project types and targets.

If True, the property is a simple value property or has a Get accessor.

Example

This example checks the CanRead property before taking an action.

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