Session.GetLoadedObjectByKey(XPClassInfo, Object) Method
In This Article
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.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public object GetLoadedObjectByKey(
XPClassInfo classInfo,
object id
)
#Parameters
Name | Type | Description |
---|---|---|
class |
XPClass |
An XPClass |
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. |
#Remarks
To get the up to date object from the data store, use the Session.GetObjectByKey method.
See Also