The requested page is not available for the requested platform. You are viewing the content for Default platform.

XPObjectSpace.ReloadObject(Object) Method

Reloads the state of the specified persistent object and its aggregated objects from the data store.

Namespace: DevExpress.ExpressApp.Xpo

Assembly: DevExpress.ExpressApp.Xpo.v19.1.dll

Declaration

public override object ReloadObject(
    object obj
)
Public Overrides Function ReloadObject(
    obj As Object
) As Object

Parameters

Name Type Description
obj Object

An object which represents the persistent object whose state needs to be reloaded.

Returns

Type Description
Object

The object specified by the obj parameter after it has been reloaded.

Remarks

If the specified persistent object is a new object, the ReloadObject method does nothing. To ensure that the persistent object is not a new object, use the XPObjectSpace.IsNewObject method.

It is not required that the specified object belong to the current Object Space. If it does not belong, it is retrieved by the current Object Space, and then its state is reloaded.

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

See Also