Skip to main content
.NET Framework 4.6.2+

Session.GetLoadedObjectByKey Method

Name Parameters Description
GetLoadedObjectByKey(XPClassInfo, Object) classInfo, id Returns the persistent object with the specified value of the key property that has been already loaded from a data store.
GetLoadedObjectByKey(Type, Object) classType, id Returns the persistent object with the specified value of the key property that has been already loaded from a data store.
GetLoadedObjectByKey<ClassType>(Object) id Returns the persistent object of the type designated by the specified generic type parameter, with the specified value of the key property previously loaded from a data store.