The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

XPWeakReference Class

A persistent weak reference to a persistent object.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.1.dll

Declaration

[MemberDesignTimeVisibility(false)]
public class XPWeakReference : XPCustomObject, IXPOServiceClass
<MemberDesignTimeVisibility(False)>
Public Class XPWeakReference
    Inherits XPCustomObject
    Implements IXPOServiceClass
[MemberDesignTimeVisibility(false)]
public class XPWeakReference : XPCustomObject, IXPOServiceClass
<MemberDesignTimeVisibility(False)>
Public Class XPWeakReference
    Inherits XPCustomObject
    Implements IXPOServiceClass

Remarks

A weak reference refers to an object but still allows it to be garbage collected.

A persistent weak reference can be used in the following instances:

  • when a persistent object needs to refer to another object whose type cannot be specified at the time the program code is written;
  • when you need to create a reference to an object but allow it to be garbage collected.

The object referenced by the XPWeakReference is specified by the XPWeakReference.Target property.

Inheritance

Implements

DevExpress.Xpo.Helpers.IXPClassInfoAndSessionProvider
DevExpress.Xpo.Helpers.IXPClassInfoProvider
DevExpress.Xpo.Helpers.IObjectLayerProvider
DevExpress.Xpo.Helpers.IDataLayerProvider
DevExpress.Xpo.Metadata.Helpers.IXPDictionaryProvider
DevExpress.Xpo.IXPCustomPropertyStore
DevExpress.Xpo.IXPInvalidateableObject
DevExpress.Xpo.IXPReceiveOnChangedFromDelayedProperty
DevExpress.Xpo.IXPReceiveOnChangedFromArbitrarySource
DevExpress.Xpo.Helpers.IXPImmutableHashCode
DevExpress.Xpo.IXPReceiveOnChangedFromXPPropertyDescriptor
DevExpress.Xpo.Helpers.IXPOServiceClass
See Also