.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
A newer version of this page is available. Switch to the current version.

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.