PropertyInfo.IsShared

From Xojo Documentation

Revision as of 17:22, 12 November 2019 by PLefebvre (talk | contribs) (Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

New in 2008r3

Supported for all project types and targets.

If True, it is a shared property and does not require a Self parameter when called by Introspection.

Example

This example reports whether the properties for the Date class are shared.

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
ListBox1.AddRow(Str(prop.IsShared))
End If
Next