Back to Devexpress

SecurityStrategy.UserType Property

expressappframework-devexpress-dot-expressapp-dot-security-dot-securitystrategy-c713f1de.md

latest7.2 KB
Original Source

SecurityStrategy.UserType Property

Specifies the type of user that is supported by the security strategy.

Namespace : DevExpress.ExpressApp.Security

Assembly : DevExpress.ExpressApp.Security.v25.2.dll

NuGet Package : DevExpress.ExpressApp.Security

Declaration

csharp
public Type UserType { get; set; }
vb
Public Property UserType As Type

Property Value

TypeDescription
Type

The type of user that is supported by the security strategy.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the UserType property.

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/EFCore/Security.Extensions/Module.cs#L22

csharp
if(securityStrategy != null) {
    SecuritySystemUserType = securityStrategy.UserType;
}

XAF_how-to-show-filter-dialog-before-listview/CS/E1554.Web/WebApplication.cs#L71

csharp
this.securityStrategyComplex1.RoleType = typeof(DevExpress.ExpressApp.Security.Strategy.SecuritySystemRole);
this.securityStrategyComplex1.UserType = typeof(DevExpress.ExpressApp.Security.Strategy.SecuritySystemUser);
//

xaf-how-to-implement-a-custom-security-operation-that-can-be-permitted-at-the-type-level/CS/CustomSecurityOperation.Web/WebApplication.cs#L53

csharp
this.securityStrategyComplex1.RoleType = typeof(DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyRole);
this.securityStrategyComplex1.UserType = typeof(DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyUser);
//

xaf-how-to-implement-a-security-system-user-based-on-an-existing-business-class/CS/EmployeeAsUserExample.Web/WebApplication.cs#L43

csharp
this.securityStrategyComplex1.RoleType = typeof(EmployeeAsUserExample.Module.BusinessObjects.EmployeeRole);
this.securityStrategyComplex1.UserType = typeof(EmployeeAsUserExample.Module.BusinessObjects.Employee);
//

xaf-separate-employees-data-in-different-departments-using-security-permissions/CS/MainDemo.Web/WebApplication.cs#L52

csharp
this.securityStrategyComplex1.RoleType = typeof(DevExpress.ExpressApp.Security.Strategy.SecuritySystemRole);
this.securityStrategyComplex1.UserType = typeof(MainDemo.Module.BusinessObjects.Employee);
//

xaf-how-to-use-data-from-security-in-criterion/VB/CustomFunctionCriteriaOperator.Web/WebApplication.vb#L64

vb
Me.securityStrategyComplex1.RoleType = GetType(DevExpress.ExpressApp.Security.Strategy.SecuritySystemRole)
Me.securityStrategyComplex1.UserType = GetType(DevExpress.ExpressApp.Security.Strategy.SecuritySystemUser)
'

XAF_how-to-show-filter-dialog-before-listview/VB/E1554.Web/WebApplication.vb#L64

vb
Me.securityStrategyComplex1.RoleType = GetType(DevExpress.ExpressApp.Security.Strategy.SecuritySystemRole)
Me.securityStrategyComplex1.UserType = GetType(DevExpress.ExpressApp.Security.Strategy.SecuritySystemUser)
'

xaf-how-to-implement-a-custom-security-operation-that-can-be-permitted-at-the-type-level/VB/CustomSecurityOperation.Web/WebApplication.vb#L54

vb
Me.securityStrategyComplex1.RoleType = GetType(DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyRole)
Me.securityStrategyComplex1.UserType = GetType(DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyUser)
'

xaf-how-to-implement-a-security-system-user-based-on-an-existing-business-class/VB/EmployeeAsUserExample.Web/WebApplication.vb#L45

vb
Me.securityStrategyComplex1.RoleType = GetType(EmployeeAsUserExample.Module.BusinessObjects.EmployeeRole)
Me.securityStrategyComplex1.UserType = GetType(EmployeeAsUserExample.Module.BusinessObjects.Employee)
'

xaf-separate-employees-data-in-different-departments-using-security-permissions/VB/MainDemo.Web/WebApplication.vb#L49

vb
Me.securityStrategyComplex1.RoleType = GetType(DevExpress.ExpressApp.Security.Strategy.SecuritySystemRole)
Me.securityStrategyComplex1.UserType = GetType(MainDemo.[Module].BusinessObjects.Employee)
Me.authenticationStandard1.LogonParametersType = GetType(DevExpress.ExpressApp.Security.AuthenticationStandardLogonParameters)

Implements

UserType

See Also

SecurityStrategy Class

SecurityStrategy Members

DevExpress.ExpressApp.Security Namespace