All docs
V21.2
21.2
21.1
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET 5.0+

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.v21.2.dll

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