Skip to main content
.NET Framework 4.5.2+

PermissionSettingHelper.AddMemberPermission<T>(IPermissionPolicyRole, String, String, String, Nullable<SecurityPermissionState>) Method

Finds the first type permission for the specified type in the role and adds the member permission to it. If the appropriate type permission is not found, this method creates it.

Namespace: DevExpress.ExpressApp.Security

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


public static IPermissionPolicyMemberPermissionsObject AddMemberPermission<T>(
    this IPermissionPolicyRole role,
    string operations,
    string members,
    string criteria,
    SecurityPermissionState? State
    where T : class


Name Type Description
role IPermissionPolicyRole

The target role for a new object permission.

operations String

The semicolon-separated list of security operations. The static SecurityOperations class defines operation names and their delimiter.

members String

The semicolon-separated list of target member names.

criteria String

The criteria expression that specifies the target object(s).

State Nullable<SecurityPermissionState>

A SecurityPermissionState enumeration value that specifies if access is granted or denied.

Type Parameters

Name Description

This method finds the type permission for this type in the role.


Type Description

The added member permission.


Alternatively, you can use the AddMemberPermissionFromLambda<T>(IPermissionPolicyRole, String, String, Expression<Func<T, Boolean>>, Nullable<SecurityPermissionState>) method, which takes a lambda expression instead of a criteria expression.

See Also