expressappframework-devexpress-dot-expressapp-dot-nonpersistentobjectspace-47edbc27.md
Occurs when NonPersistentObjectSpace gets an object using the NonPersistentObjectSpace.GetObject method .
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public event EventHandler<ObjectGettingEventArgs> ObjectGetting
Public Event ObjectGetting As EventHandler(Of ObjectGettingEventArgs)
The ObjectGetting event's data class is DevExpress.ExpressApp.ObjectGettingEventArgs.
Handle this event to supply an object returned by the GetObject method.
The following code snippets (auto-collected from DevExpress Examples) contain references to the ObjectGetting 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.ObjectByKeyGetting += ObjectSpace_ObjectByKeyGetting;
objectSpace.ObjectGetting += ObjectSpace_ObjectGetting;
objectSpace.Reloaded += ObjectSpace_Reloaded;
this.objectSpace = npos;
objectSpace.ObjectGetting += ObjectSpace_ObjectGetting;
objectSpace.Reloaded += ObjectSpace_Reloaded;
objectSpace.ObjectsGetting += ObjectSpace_ObjectsGetting;
objectSpace.ObjectGetting += ObjectSpace_ObjectGetting;
objectSpace.ObjectByKeyGetting += ObjectSpace_ObjectByKeyGetting;
_objectSpace.ObjectsGetting += ObjectSpace_ObjectsGetting;
_objectSpace.ObjectGetting += ObjectSpace_ObjectGetting;
_objectSpace.ObjectByKeyGetting += ObjectSpace_ObjectByKeyGetting;
AddHandler objectSpace.ObjectsGetting, AddressOf ObjectSpace_ObjectsGetting
AddHandler objectSpace.ObjectGetting, AddressOf ObjectSpace_ObjectGetting
AddHandler objectSpace.ObjectByKeyGetting, AddressOf ObjectSpace_ObjectByKeyGetting
See Also
NonPersistentObjectSpace Class