Back to Devexpress

PersistentBase.GetModificationsStore(Object) Method

xpo-devexpress-dot-xpo-dot-persistentbase-dot-getmodificationsstore-x28-system-dot-object-x29.md

latest2.3 KB
Original Source

PersistentBase.GetModificationsStore(Object) Method

Returns an object that stores information about the modified properties when the Session.TrackPropertiesModifications option is enabled.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public static IXPModificationsStore GetModificationsStore(
    object theObject
)
vb
Public Shared Function GetModificationsStore(
    theObject As Object
) As IXPModificationsStore

Parameters

NameTypeDescription
theObjectObject

A persistent object that is modified.

|

Returns

TypeDescription
IXPModificationsStore

An IXPModificationsStore object that stores information about the modified properties.

|

Remarks

Use the GetModificationsStore method to access an IXPModificationsStore storage for a given persistent object Then, you can access the IXPModificationsStore methods, for instance:

csharp
XPMemberInfo miContactTitle = person.ClassInfo.GetMember("ContactTitle");
IXPModificationsStore ms = PersistentBase.GetModificationsStore(person);
var oldValue = ms.GetPropertyOldValue(miContactTitle);
vb
Dim miContactTitle As XPMemberInfo = person.ClassInfo.GetMember("ContactTitle")
Dim ms As IXPModificationsStore = PersistentBase.GetModificationsStore(person)
Dim oldValue = ms.GetPropertyOldValue(miContactTitle)

See Also

PersistentBase Class

PersistentBase Members

DevExpress.Xpo Namespace