Back to Devexpress

INonSecuredObjectSpaceFactory.CreateNonSecuredObjectSpace(Type) Method

expressappframework-devexpress-dot-expressapp-dot-inonsecuredobjectspacefactory-dot-createnonsecuredobjectspace-x28-system-dot-type-x29.md

latest2.8 KB
Original Source

INonSecuredObjectSpaceFactory.CreateNonSecuredObjectSpace(Type) Method

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

Declaration

csharp
IObjectSpace CreateNonSecuredObjectSpace(
    Type objectType
)
vb
Function CreateNonSecuredObjectSpace(
    objectType As Type
) As IObjectSpace

Parameters

NameTypeDescription
objectTypeType

The method creates a non-secured Object Space for this business object type.

|

Returns

TypeDescription
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.

XAF_logon-form-manage-users-register-a-new-user-restore-a-password/CS/Security.Extensions/Services/UserRegistrationService.cs#L40

csharp
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

INonSecuredObjectSpaceFactory Members

DevExpress.ExpressApp Namespace