Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

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.