expressappframework-devexpress-dot-expressapp-dot-nonpersistentobjectspace-d4474aff.md
Occurs when an object is retrieved by its key, using the NonPersistentObjectSpace.GetObjectByKey method.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public event EventHandler<ObjectByKeyGettingEventArgs> ObjectByKeyGetting
Public Event ObjectByKeyGetting As EventHandler(Of ObjectByKeyGettingEventArgs)
The ObjectByKeyGetting event's data class is DevExpress.ExpressApp.ObjectByKeyGettingEventArgs.
Examples:
The following code snippets (auto-collected from DevExpress Examples) contain references to the ObjectByKeyGetting event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
objectSpace.ObjectsGetting += ObjectSpace_ObjectsGetting;
objectSpace.ObjectByKeyGetting += ObjectSpace_ObjectByKeyGetting;
objectSpace.ObjectGetting += ObjectSpace_ObjectGetting;
_objectSpace.ObjectsGetting += ObjectSpace_ObjectsGetting;
_objectSpace.ObjectByKeyGetting += ObjectSpace_ObjectByKeyGetting;
}
objectSpace.ObjectGetting += ObjectSpace_ObjectGetting;
objectSpace.ObjectByKeyGetting += ObjectSpace_ObjectByKeyGetting;
objectSpace.Reloaded += ObjectSpace_Reloaded;
AddHandler objectSpace.ObjectGetting, AddressOf ObjectSpace_ObjectGetting
AddHandler objectSpace.ObjectByKeyGetting, AddressOf ObjectSpace_ObjectByKeyGetting
AddHandler objectSpace.Reloaded, AddressOf ObjectSpace_Reloaded
See Also
NonPersistentObjectSpace Class