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.v24.2.dll
NuGet Package: DevExpress.ExpressApp.Security
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
role | IPermission |
An IPermission |
item |
String | A String value which is the path to the particular navigation item or group. |
state | Nullable<Security |
A Security |
#Returns
Type | Description |
---|---|
DevExpress. |
A DevExpress. |
#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.