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

ObjectChangedEventArgs.OldValue Property

Specifies the old value of a changed property.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

public object OldValue { get; }
Public ReadOnly Property OldValue As Object
public object OldValue { get; }
Public ReadOnly Property OldValue As Object
public object OldValue { get; }
Public ReadOnly Property OldValue As Object

Property Value

Type Description
Object

The old value of a changed property.

Property Value

Type Description
Object

The old value of a changed property.

Property Value

Type Description
Object

The old value of a changed property.

Remarks

The IObjectSpace.ObjectChanged event can be triggered when an end-user starts modifying any property value in a UI. In this instance, the event is triggered, but the ObjectChangedEventArgs.NewValue and OldValue properties are equal. This is the designed behavior. So, if you want to execute a custom activity when a property value change occurs, check the equality of these properties preliminarily.

See Also