Back to Devexpress

Session.IdentityMapBehavior Property

xpo-devexpress-dot-xpo-dot-session-8abe5e8d.md

latest1.7 KB
Original Source

Session.IdentityMapBehavior Property

Gets or sets the session’s Identity Map behavior.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
[DefaultValue(IdentityMapBehavior.Default)]
public IdentityMapBehavior IdentityMapBehavior { get; set; }
vb
<DefaultValue(IdentityMapBehavior.Default)>
Public Property IdentityMapBehavior As IdentityMapBehavior

Property Value

TypeDefaultDescription
IdentityMapBehaviorDefault

An IdentityMapBehavior enumeration value that specifies the session’s Identity Map behavior.

|

Available values:

NameDescription
Default

The behavior is determined by XPO. Curently, this is equal to IdentityMapBehavior.Weak.

| | Weak |

Weak references are used, which allows the garbage collector to reclaim unused objects.

| | Strong |

Direct references to objects are used.

|

Remarks

When the property is set to IdentityMapBehavior.Default , the value of the XpoDefault.IdentityMapBehavior property is in effect.

See Also

DropIdentityMap()

Session Class

Session Members

DevExpress.Xpo Namespace