PropertyInfo.IsShared

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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 DateTime class are shared.

Var d As New DateTime = DateTime.Now
Var myProperties() As Introspection.PropertyInfo = Introspection.GetType(d).GetProperties
For Each prop As Introspection.PropertyInfo In myProperties
If prop.CanRead Then
ListBox1.AddRow(prop.IsShared.ToString)
End If
Next