Skip to main content
.NET Framework 4.5.2+

IObjectSpace.GetObjectByHandle(String) Method

Returns the object with the specified handle.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v22.2.dll

NuGet Package: DevExpress.ExpressApp


object GetObjectByHandle(
    string handle


Name Type Description
handle String

A string holding the key property value and type of the specified object, representing the handle of the object that will be retrieved.


Type Description

An object which has the specified handle.


The object handle is a string of the following format:


Here, Solution1.Module.BusinessObjects.MyEntityObject is the FullName of the object type and 1 is the object’s key property value. To get the handle of an existing object, use the IObjectSpace.GetObjectHandle method.

When implementing the IObjectSpace interface in the BaseObjectSpace class’s descendant, don’t implement the GetObjectByHandle method. It’s implemented in the BaseObjectSpace class. The BaseObjectSpace.GetObjectByHandle method parses the handler passed as the handle parameter using the DevExpress.ExpressApp.ObjectHandleHelper class and calls the BaseObjectSpace.GetObjectByKey method to get the object to return.

See Also