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

BaseObjectSpace.IsModified Property

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

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

public bool IsModified { get; }
Public ReadOnly Property IsModified As Boolean
public bool IsModified { get; }
Public ReadOnly Property IsModified As Boolean
public bool IsModified { get; }
Public ReadOnly Property IsModified As Boolean

Property Value

Type Description
Boolean

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

Property Value

Type Description
Boolean

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

Property Value

Type Description
Boolean

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

Remarks

An Object Space manages the state of the persistent objects which it created or retrieved. You can get this state via the IsModified property. It returns false if none of the objects have been modified since they were retrieved or committed (see BaseObjectSpace.CommitChanges). After an object has been created, modified or deleted, the IsModified property returns true. When this property's value is changed, the BaseObjectSpace.ModifiedChanged event is raised.

You can change the IsModified property value via the BaseObjectSpace.SetModified method.

To get the list of modified objects, use the Object Space's ModifiedObjects property (see XPObjectSpace.ModifiedObjects or EFObjectSpace.ModifiedObjects) property.

See Also