MemberInfo.IsProtected

From Xojo Documentation

Revision as of 15:48, 16 July 2019 by Gperlman (talk | contribs)

Property (As Boolean )
aMemberInfo.IsProtected = newBooleanValue
or
BooleanValue = aMemberInfo.IsProtected

New in 2008r3

Supported for all project types and targets.

Is True, the item has Protected scope.

Example

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