The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

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

Adds the navigation permission to the current role with the specified settings.

Namespace: DevExpress.ExpressApp.Security

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

Declaration

public static IPermissionPolicyNavigationPermissionObject AddNavigationPermission(
    this IPermissionPolicyRole role,
    string itemPath,
    SecurityPermissionState? state
)
<ExtensionAttribute>
Public Shared Function AddNavigationPermission(
    role As IPermissionPolicyRole,
    itemPath As String,
    state As SecurityPermissionState?
) As IPermissionPolicyNavigationPermissionObject
public static IPermissionPolicyNavigationPermissionObject AddNavigationPermission(
    this IPermissionPolicyRole role,
    string itemPath,
    SecurityPermissionState? state
)
<ExtensionAttribute>
Public Shared Function AddNavigationPermission(
    role As IPermissionPolicyRole,
    itemPath As String,
    state As SecurityPermissionState?
) As IPermissionPolicyNavigationPermissionObject
public static IPermissionPolicyNavigationPermissionObject AddNavigationPermission(
    this IPermissionPolicyRole role,
    string itemPath,
    SecurityPermissionState? state
)
<ExtensionAttribute>
Public Shared Function AddNavigationPermission(
    role As IPermissionPolicyRole,
    itemPath As String,
    state As SecurityPermissionState?
) As IPermissionPolicyNavigationPermissionObject

Parameters

Name Type Description
role IPermissionPolicyRole

An IPermissionPolicyRole object specifying the security role.

itemPath String

A String value which is the path to the particular navigation item or group.

state Nullable<SecurityPermissionState>

A SecurityPermissionState enumeration value specifying if access is granted or denied.

Parameters

Name Type Description
role IPermissionPolicyRole

An IPermissionPolicyRole object specifying the security role.

itemPath String

A String value which is the path to the particular navigation item or group.

state Nullable<SecurityPermissionState>

A SecurityPermissionState enumeration value specifying if access is granted or denied.

Parameters

Name Type Description
role IPermissionPolicyRole

An IPermissionPolicyRole object specifying the security role.

itemPath String

A String value which is the path to the particular navigation item or group.

state Nullable<SecurityPermissionState>

A SecurityPermissionState enumeration value specifying if access is granted or denied.

Returns

Type Description
DevExpress.Persistent.Base.IPermissionPolicyNavigationPermissionObject

A DevExpress.Persistent.Base.IPermissionPolicyNavigationPermissionObject object specifying the added navigation permission.

Returns

Type Description
DevExpress.Persistent.Base.IPermissionPolicyNavigationPermissionObject

A DevExpress.Persistent.Base.IPermissionPolicyNavigationPermissionObject object specifying the added navigation permission.

Returns

Type Description
DevExpress.Persistent.Base.IPermissionPolicyNavigationPermissionObject

A DevExpress.Persistent.Base.IPermissionPolicyNavigationPermissionObject object specifying the added navigation permission.

Remarks

You can get the correct itemPath value using the Model Editor. For this purpose, expand the NavigationItems category, find the target navigation item and copy the ItemPath property value.

ModelEditor_ItemPath

See Also