Class ObjectChangeEventArgs
- Namespace
- DevExpress.Xpo
- Assembly
- DevExpress.Xpo.v24.1.dll
Provides data for the XPBaseObject.Changed and Session.ObjectChanged events.
public class ObjectChangeEventArgs : EventArgs
- Inheritance
-
ObjectChangeEventArgs
- Inherited Members
Constructors
ObjectChangeEventArgs(ObjectChangeReason)
Initializes a new instance of the ObjectChangeEventArgs class with the specified ObjectChangeEventArgs.Reason property.
[Obsolete("Use ObjectChangeEventArgs(Session session, object theObject, ObjectChangeReason reason) instead")]
public ObjectChangeEventArgs(ObjectChangeReason reason)
Parameters
reason
ObjectChangeReasonAn ObjectChangeReason enumeration value which represents the way that the object has been changed. This value is assigned to the ObjectChangeEventArgs.Reason property.
ObjectChangeEventArgs(ObjectChangeReason, string)
Initializes a new instance of the ObjectChangeEventArgs class with the specified ObjectChangeEventArgs.Reason and ObjectChangeEventArgs.PropertyName properties.
[Obsolete("Use ObjectChangeEventArgs(Session session, object theObject, ObjectChangeReason reason, string propertyName, object oldValue, object newValue) instead")]
public ObjectChangeEventArgs(ObjectChangeReason reason, string propertyName)
Parameters
reason
ObjectChangeReasonAn ObjectChangeReason enumeration value which represents the way that the object has been changed. This value is assigned to the ObjectChangeEventArgs.Reason property.
propertyName
stringA string value which specifies the name of the property whose value has been changed. This value is assigned to the ObjectChangeEventArgs.PropertyName property.
ObjectChangeEventArgs(Session, object, ObjectChangeReason)
Initializes a new instance of the ObjectChangeEventArgs class with the specified parameters.
public ObjectChangeEventArgs(Session session, object theObject, ObjectChangeReason reason)
Parameters
session
SessionThe Session of the object whose property has been changed. This value is assigned to the ObjectChangeEventArgs.Session property.
theObject
objectThe object whose property has been changed. This value is assigned to the ObjectChangeEventArgs.Object property.
reason
ObjectChangeReasonAn ObjectChangeReason enumeration value which represents the way that the object has been changed. This value is assigned to the ObjectChangeEventArgs.Reason property.
ObjectChangeEventArgs(Session, object, ObjectChangeReason, string, object, object)
Initializes a new instance of the ObjectChangeEventArgs class with the specified parameters.
public ObjectChangeEventArgs(Session session, object theObject, ObjectChangeReason reason, string propertyName, object oldValue, object newValue)
Parameters
session
SessionThe Session of the object whose property has been changed. This value is assigned to the ObjectChangeEventArgs.Session property.
theObject
objectThe object whose property has been changed. This value is assigned to the ObjectChangeEventArgs.Object property.
reason
ObjectChangeReasonAn ObjectChangeReason enumeration value which represents the way that the object has been changed. This value is assigned to the ObjectChangeEventArgs.Reason property.
propertyName
stringA string value which specifies the name of the property whose value has been changed. This value is assigned to the ObjectChangeEventArgs.PropertyName property.
oldValue
objectAn object which represents the changed property’s old value.
newValue
objectAn object which represents the changed property’s new value.
ObjectChangeEventArgs(Session, object, string, object, object)
Initializes a new instance of the ObjectChangeEventArgs class with the specified parameters.
public ObjectChangeEventArgs(Session session, object theObject, string propertyName, object oldValue, object newValue)
Parameters
session
SessionThe Session of the object whose property has been changed. This value is assigned to the ObjectChangeEventArgs.Session property.
theObject
objectThe object whose property has been changed. This value is assigned to the ObjectChangeEventArgs.Object property.
propertyName
stringA string value which specifies the name of the property whose value has been changed. This value is assigned to the ObjectChangeEventArgs.PropertyName property.
oldValue
objectAn object which represents the changed property’s old value.
newValue
objectAn object which represents the changed property’s new value.
ObjectChangeEventArgs(string, object, object)
Initializes a new instance of the ObjectChangeEventArgs class with the specified properties.
[Obsolete("Use ObjectChangeEventArgs(Session session, object theObject, string propertyName, object oldValue, object newValue) instead")]
public ObjectChangeEventArgs(string propertyName, object oldValue, object newValue)
Parameters
propertyName
stringA string value which specifies the name of the property whose value has been changed. This value is assigned to the ObjectChangeEventArgs.PropertyName property.
oldValue
objectAn object which represents the old value.
newValue
objectAn object which represents the new value.
Properties
NewValue
Gets or sets the property’s new value.
public object NewValue { get; set; }
Property Value
- object
The property’s new value.
Object
Gets or sets the object whose property has been changed.
public object Object { get; set; }
Property Value
- object
The object whose property has been changed.
OldValue
Gets or sets the property’s old value.
public object OldValue { get; set; }
Property Value
- object
The property’s old value.
PropertyName
Gets the name of the property affected by the changes made.
public string PropertyName { get; }
Property Value
- string
The name of the property affected by the changes.
Reason
Gets the way in which the object has been changed.
public ObjectChangeReason Reason { get; }
Property Value
- ObjectChangeReason
An ObjectChangeReason enumeration value which represents the way in which the object has been changed.
Session
Gets or sets the Session of the object whose property has been changed.
public Session Session { get; set; }