expressappframework-devexpress-dot-expressapp-dot-objectspacecreatedeventargs.md
Gets the Object Space.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public IObjectSpace ObjectSpace { get; }
Public ReadOnly Property ObjectSpace As IObjectSpace
| Type | Description |
|---|---|
| IObjectSpace |
An IObjectSpace objects that specifies the Object Space.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the ObjectSpace property.
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.
private void Application_ObjectSpaceCreated(Object sender, ObjectSpaceCreatedEventArgs e) {
if(e.ObjectSpace is NonPersistentObjectSpace) {
NonPersistentObjectSpace npos = (NonPersistentObjectSpace)e.ObjectSpace;
XAF_Non-Persistent-Objects-Filtering-Demo/CS/EFCore/NonPersistentFilteringEF.Module/Module.cs#L37
private void Application_ObjectSpaceCreated(object sender, ObjectSpaceCreatedEventArgs e) {
var npos = e.ObjectSpace as NonPersistentObjectSpace;
if (npos != null) {
private void Application_ObjectSpaceCreated(object sender, ObjectSpaceCreatedEventArgs e) {
var npos = e.ObjectSpace as NonPersistentObjectSpace;
if (npos != null) {
private void Application_ObjectSpaceCreated(object sender, ObjectSpaceCreatedEventArgs e) {
var npos = e.ObjectSpace as NonPersistentObjectSpace;
if(npos != null) {
private void Application_ObjectSpaceCreated(object sender, ObjectSpaceCreatedEventArgs e) {
var cos = e.ObjectSpace as CompositeObjectSpace;
if(cos != null) {
Private Sub Application_ObjectSpaceCreated(ByVal sender As Object, ByVal e As ObjectSpaceCreatedEventArgs)
If TypeOf e.ObjectSpace Is NonPersistentObjectSpace Then
Dim npos As NonPersistentObjectSpace = CType(e.ObjectSpace, NonPersistentObjectSpace)
Private Sub Application_ObjectSpaceCreated(ByVal sender As Object, ByVal e As ObjectSpaceCreatedEventArgs)
TryCast(e.ObjectSpace, CompositeObjectSpace)?.PopulateAdditionalObjectSpaces(CType(sender, XafApplication))
End Sub
See Also
ObjectSpaceCreatedEventArgs Class