Skip to main content
.NET Framework 4.5.2+

IObjectSpace.IsModified Property

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

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v22.2.dll

NuGet Package: DevExpress.ExpressApp


bool IsModified { get; }

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the IsModified property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also