.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

IObjectSpace.IsModified Property

Specifies whether objects belonging to the current Object Space are modified.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v20.2.dll


bool IsModified { get; }
ReadOnly Property IsModified As Boolean

Property Value

Type Description

true if at least one persistent object is modified; otherwise, false.


An Object Space manages the state of the persistent objects which it created or retrieved. You can learn about this state via the IsModified property.

If you implement the IObjectSpace interface in the BaseObjectSpace class' descendant, you don't have to implement the IsModified property. It's implemented in the BaseObjectSpace class. The property's value is changed using the protected BaseObjectSpace.SetIsModified method. This method raises the IObjectSpace.ModifiedChanged event if the IsModified property has been changed. The property returns false if none of the objects have been modified since they were retrieved or committed (see IObjectSpace.CommitChanges). After an object has been created, modified or deleted, the IsModified property returns true.

When implementing the BaseObjectSpace class descendant, call the BaseObjectSpace.SetIsModified method to change the IsModified state where it is required.

To get the list of modified objects, use the IObjectSpace.ModifiedObjects property.

See Also