Skip to main content
All docs
V24.2
.NET Framework 4.6.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.v24.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public override object ReloadObject(
    object obj
)

Parameters

Name Type Description
obj Object

An object to be reloaded from the data source.

Returns

Type Description
Object

The reloaded object.

Remarks

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.

Note

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