Back to Devexpress

INonsecuredObjectSpaceProvider.CreateNonsecuredObjectSpace() Method

expressappframework-devexpress-dot-expressapp-dot-security-dot-inonsecuredobjectspaceprovider.md

latest2.1 KB
Original Source

INonsecuredObjectSpaceProvider.CreateNonsecuredObjectSpace() Method

Creates a non-secured Object Space that allows you to bypass the Security System and access unprotected data.

Namespace : DevExpress.ExpressApp.Security

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
IObjectSpace CreateNonsecuredObjectSpace()
vb
Function CreateNonsecuredObjectSpace As IObjectSpace

Returns

TypeDescription
IObjectSpace

A non-secured Object Space that allows you to bypass the Security System and access unprotected data.

|

Remarks

The following help topic demonstrates how to use this method: Change the Current User Role in Code.

Note the following when you operate with a non-secured Object Space:

  • The non-secured Object Space ignores security permissions and provides access to all data. This means that the current user can modify data regardless of assigned roles.
  • If you need to interact with objects from the main (secured) and non-secured Object Spaces, use the GetObject(Object) method to copy the object from one Object Space to another.

See Also

INonsecuredObjectSpaceProvider Interface

INonsecuredObjectSpaceProvider Members

DevExpress.ExpressApp.Security Namespace