The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Session.GetLoadedObjectByKey(Type, Object) Method

Returns the persistent object with the specified value of the key property that has been already loaded from a data store.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public object GetLoadedObjectByKey(
    Type classType,
    object id
)
Public Function GetLoadedObjectByKey(
    classType As Type,
    id As Object
) As Object
public object GetLoadedObjectByKey(
    Type classType,
    object id
)
Public Function GetLoadedObjectByKey(
    classType As Type,
    id As Object
) As Object

Parameters

Name Type Description
classType Type

The Type of the persistent object.

id Object

An object which represents the key property's value of the persistent object.

Parameters

Name Type Description
classType Type

The Type of the persistent object.

id Object

An object which represents the key property's value of the persistent object.

Returns

Type Description
Object

An object which represents the persistent object with the specified value of the key property. null (Nothing in Visual Basic) if the persistent object was not found in memory.

Returns

Type Description
Object

An object which represents the persistent object with the specified value of the key property. null (Nothing in Visual Basic) if the persistent object was not found in memory.

Remarks

To get the up to date object from the data store, use the Session.GetObjectByKey method.

See Also