Back to Devexpress

IObjectSpaceProvider.CreateObjectSpace() Method

expressappframework-devexpress-dot-expressapp-dot-iobjectspaceprovider.md

latest2.3 KB
Original Source

IObjectSpaceProvider.CreateObjectSpace() Method

Instantiates an Object Space.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
IObjectSpace CreateObjectSpace()
vb
Function CreateObjectSpace As IObjectSpace

Returns

TypeDescription
IObjectSpace

An IObjectSpace object representing the instantiated Object Space.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateObjectSpace() 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-create-and-setup-an-xtrareport-report-for-exporting-to-a-stream-in-a-non-xaf/CS/EFCore/ExportReportEF/ExportXAFReport/MyReportObjectSpaceProvider.cs#L21

csharp
if (objectSpace == null) {
    objectSpace = objectSpaceProvider.CreateObjectSpace();
}

See Also

CreateObjectSpace

IObjectSpaceProvider Interface

IObjectSpaceProvider Members

DevExpress.ExpressApp Namespace