Back to Devexpress

IObjectSpace.CreateNestedObjectSpace() Method

expressappframework-devexpress-dot-expressapp-dot-iobjectspace-795bcdf2.md

latest2.7 KB
Original Source

IObjectSpace.CreateNestedObjectSpace() Method

Creates a nested Object Space.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
IObjectSpace CreateNestedObjectSpace()
vb
Function CreateNestedObjectSpace As IObjectSpace

Returns

TypeDescription
IObjectSpace

An IObjectSpace object that is a created nested Object Space.

|

Remarks

This method is intended for creating a nested Object Space - an Object Space that implements the INestedObjectSpace interface. For details, refer to the XPObjectSpace.CreateNestedObjectSpace method description.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateNestedObjectSpace() method.

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-how-to-import-data-in-xaf/CS/XPO/ImportData/ImportData.Module/Controllers/ImportDataListViewController.cs#L57

csharp
importObjectSpace = Application.CreateObjectSpace(targetListView.CollectionSource.ObjectTypeInfo.Type);
using (IObjectSpace nestedImportObjectSpace = importObjectSpace.CreateNestedObjectSpace()) {
    PropertyCollectionSource pcs = targetListView.CollectionSource as PropertyCollectionSource;

See Also

CreateObjectSpace

IObjectSpace Interface

IObjectSpace Members

DevExpress.ExpressApp Namespace