Back to Devexpress

NonPersistentObjectSpace.ObjectByKeyGetting Event

expressappframework-devexpress-dot-expressapp-dot-nonpersistentobjectspace-d4474aff.md

latest4.5 KB
Original Source

NonPersistentObjectSpace.ObjectByKeyGetting Event

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

Declaration

csharp
public event EventHandler<ObjectByKeyGettingEventArgs> ObjectByKeyGetting
vb
Public Event ObjectByKeyGetting As EventHandler(Of ObjectByKeyGettingEventArgs)

Event Data

The ObjectByKeyGetting event's data class is DevExpress.ExpressApp.ObjectByKeyGettingEventArgs.

Remarks

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.

XAF_Non-Persistent-Objects-Reloading-Demo/CS/EFCore/NonPersReloadEF/NonPersReloadEF.Module/BusinessObjects/LiveSummary.cs#L96

csharp
objectSpace.ObjectsGetting += ObjectSpace_ObjectsGetting;
objectSpace.ObjectByKeyGetting += ObjectSpace_ObjectByKeyGetting;
objectSpace.ObjectGetting += ObjectSpace_ObjectGetting;

XAF_Non-Persistent-Objects-Nested-In-Persistent-Objects-Demo/CS/XPO/NonPersistentDemo/NonPersistentDemo.Module/BusinessObjects/LookupWithCustomSource/Group.cs#L27

csharp
_objectSpace.ObjectsGetting += ObjectSpace_ObjectsGetting;
    _objectSpace.ObjectByKeyGetting += ObjectSpace_ObjectByKeyGetting;
}

XAF-CRUD-for-Non-Persistent-Objects-Stored-Remotely/CS/NonPersistentObjectsDemo.Module/TransientNonPersistentObjectAdapter.cs#L23

csharp
objectSpace.ObjectGetting += ObjectSpace_ObjectGetting;
objectSpace.ObjectByKeyGetting += ObjectSpace_ObjectByKeyGetting;
objectSpace.Reloaded += ObjectSpace_Reloaded;

XAF-CRUD-for-Non-Persistent-Objects-Stored-Remotely/VB/NonPersistentObjectsDemo.Module/TransientNonPersistentObjectAdapter.vb#L23

vb
AddHandler objectSpace.ObjectGetting, AddressOf ObjectSpace_ObjectGetting
AddHandler objectSpace.ObjectByKeyGetting, AddressOf ObjectSpace_ObjectByKeyGetting
AddHandler objectSpace.Reloaded, AddressOf ObjectSpace_Reloaded

See Also

NonPersistentObjectSpace Class

NonPersistentObjectSpace Members

DevExpress.ExpressApp Namespace