BaseObjectSpace.SetModified(Object, IMemberInfo) Method

Sets the state of the specified object to be Modified.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.1.dll

Declaration

public void SetModified(
    object obj,
    IMemberInfo memberInfo
)
Public Sub SetModified(
    obj As Object,
    memberInfo As IMemberInfo
)

Parameters

Type Name Description
Object obj

A persistent object whose state is the subject to be Modified.

IMemberInfo memberInfo

An IMemberInfo object providing metadata on the property whose value has been changed.

Generally, the changes made to persistent object properties are tracked, to then be committed (see BaseObjectSpace.CommitChanges). For the object changes that cannot be tracked internally, use the SetModified method. This method calls a protected virtual SetModified method, which must be implemented in the BaseObjectSpace class' descendants.

This SetModified method overload takes an additional memberInfo parameter that allows you to specify the property that has been changed.

See Also