Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BaseObjectSpace.SetModified(Object, IMemberInfo) Method

Sets the state of the specified object to be Modified.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public void SetModified(
    object obj,
    IMemberInfo memberInfo
)

#Parameters

Name Type Description
obj Object

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

memberInfo IMemberInfo

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

#Remarks

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