expressappframework-devexpress-dot-expressapp-dot-inonsecuredobjectspacefactory-dot-createnonsecuredobjectspace-x28-system-dot-type-x29.md
Creates a non-secured Object Space for the specified business object type.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
IObjectSpace CreateNonSecuredObjectSpace(
Type objectType
)
Function CreateNonSecuredObjectSpace(
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 |
A non-secured Object Space for the specified business object type.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateNonSecuredObjectSpace(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.
public IAuthenticationStandardUser RegisterNewUser(string userName, string email, string password, bool isAdministrator) {
using var nonSecuredObjectSpace = nonSecuredObjectSpaceFactory.CreateNonSecuredObjectSpace(securityUserType);
var newUser = moduleOptions.CreateSecuritySystemUser(nonSecuredObjectSpace, userName, email, password, isAdministrator);
See Also
INonSecuredObjectSpaceFactory Interface