expressappframework-devexpress-dot-expressapp-dot-iobjectspacefactory-dot-createobjectspace-x28-system-dot-type-x29.md
Creates an Object Space for the specified business object type.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
IObjectSpace CreateObjectSpace(
Type objectType
)
Function CreateObjectSpace(
objectType As Type
) As IObjectSpace
| Name | Type | Description |
|---|---|---|
| objectType | Type |
The method creates a non-secured Object Space for this business object type.
|
| Type | Description |
|---|---|
| IObjectSpace |
An Object Space for the specified business object type.
|
Refer to the following help topics to find examples on how to use this method in different scenarios:
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateObjectSpace(Type) 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.
var type = _typesInfo.FindTypeInfo(typeName)?.Type;
using(var objectSpace = _securedObjectSpaceFactory.CreateObjectSpace(type)) {
var key = objectSpace.GetObjectKey(type, objectKey);
See Also