expressappframework-devexpress-dot-expressapp-dot-security-dot-securitystrategycomplex.md
Specifies the type of a security strategy role.
Namespace : DevExpress.ExpressApp.Security
Assembly : DevExpress.ExpressApp.Security.v25.2.dll
NuGet Package : DevExpress.ExpressApp.Security
public Type RoleType { get; set; }
Public Property RoleType As Type
| Type | Description |
|---|---|
| Type |
The type of a security strategy role.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the RoleType 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.
SecurityStrategy security = Application.GetSecurityStrategy();
roleType = ((SecurityStrategyComplex)(Application.Security)).RoleType;
roleGeneratorAction.Active["ActionExecuted"] = IsEnableRoleGeneratorAction() && security.CanRead(roleType);
XAF_how-to-show-filter-dialog-before-listview/CS/E1554.Web/WebApplication.cs#L70
this.securityStrategyComplex1.Authentication = this.authenticationActiveDirectory1;
this.securityStrategyComplex1.RoleType = typeof(DevExpress.ExpressApp.Security.Strategy.SecuritySystemRole);
this.securityStrategyComplex1.UserType = typeof(DevExpress.ExpressApp.Security.Strategy.SecuritySystemUser);
this.securityStrategyComplex1.Authentication = this.authenticationStandard1;
this.securityStrategyComplex1.RoleType = typeof(DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyRole);
this.securityStrategyComplex1.UserType = typeof(DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyUser);
this.securityStrategyComplex1.Authentication = this.authenticationStandard1;
this.securityStrategyComplex1.RoleType = typeof(EmployeeAsUserExample.Module.BusinessObjects.EmployeeRole);
this.securityStrategyComplex1.UserType = typeof(EmployeeAsUserExample.Module.BusinessObjects.Employee);
this.securityStrategyComplex1.Authentication = this.authenticationStandard1;
this.securityStrategyComplex1.RoleType = typeof(DevExpress.ExpressApp.Security.Strategy.SecuritySystemRole);
this.securityStrategyComplex1.UserType = typeof(MainDemo.Module.BusinessObjects.Employee);
Me.securityStrategyComplex1.Authentication = Me.authenticationStandard1
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#L63
Me.securityStrategyComplex1.Authentication = Me.authenticationActiveDirectory1
Me.securityStrategyComplex1.RoleType = GetType(DevExpress.ExpressApp.Security.Strategy.SecuritySystemRole)
Me.securityStrategyComplex1.UserType = GetType(DevExpress.ExpressApp.Security.Strategy.SecuritySystemUser)
Me.securityStrategyComplex1.Authentication = Me.authenticationStandard1
Me.securityStrategyComplex1.RoleType = GetType(DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyRole)
Me.securityStrategyComplex1.UserType = GetType(DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyUser)
Me.securityStrategyComplex1.Authentication = Me.authenticationStandard1
Me.securityStrategyComplex1.RoleType = GetType(EmployeeAsUserExample.Module.BusinessObjects.EmployeeRole)
Me.securityStrategyComplex1.UserType = GetType(EmployeeAsUserExample.Module.BusinessObjects.Employee)
Me.securityStrategyComplex1.Authentication = Me.authenticationStandard1
Me.securityStrategyComplex1.RoleType = GetType(DevExpress.ExpressApp.Security.Strategy.SecuritySystemRole)
Me.securityStrategyComplex1.UserType = GetType(MainDemo.[Module].BusinessObjects.Employee)
See Also