Skip to main content
All docs
.NET Framework 4.5.2+

CompositeObjectSpace.ReloadObject(Object) Method

Updates the specified object in the current Object Space with data from the data source.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v22.2.dll

NuGet Package: DevExpress.ExpressApp


public override object ReloadObject(
    object obj


Name Type Description
obj Object

An object to be reloaded from the data source.


Type Description

The reloaded object.


If the specified object is a new object, the ReloadObject method does nothing. To ensure that the object is not a new object, use the IsNewObject(Object) method.

If the specified object does not belong to the current Object Space, the ReloadObject method retrieves this object to the current Object Space, and then reloads its state.

A CannotReloadPurgedObjectException is thrown if the specified persistent object is deleted from the data store.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ReloadObject(Object) method.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also