.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.GetObjectByKeyAsync Method

Name Parameters Description
GetObjectByKeyAsync(XPClassInfo, Object, Boolean, CancellationToken) classInfo, id, alwaysGetFromDataStore, cancellationToken Asynchronously returns a persistent object that has the specified key property value from a data store.
GetObjectByKeyAsync(XPClassInfo, Object, CancellationToken) classInfo, id, cancellationToken Asynchronously returns a persistent object that has the specified key property value.
GetObjectByKeyAsync(Type, Object, Boolean, CancellationToken) classType, id, alwaysGetFromDataStore, cancellationToken Asynchronously returns a persistent object that has the specified key property value from a data store.
GetObjectByKeyAsync(Type, Object, CancellationToken) classType, id, cancellationToken Asynchronously returns a persistent object that has the specified key property value.
GetObjectByKeyAsync<ClassType>(Object, Boolean, CancellationToken) id, alwaysGetFromDataStore, cancellationToken Asynchronously returns a persistent object that has the specified key property value. The persistent object's type is set by the generic type parameter.
GetObjectByKeyAsync<ClassType>(Object, CancellationToken) id, cancellationToken Asynchronously returns a persistent object that has the specified key property value. The persistent object's type is set by the generic type parameter.