Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PermissionSettingHelper.AddObjectPermission Method

Name Parameters Description
AddObjectPermission(IPermissionPolicyRole, Type, String, String, Nullable<SecurityPermissionState>) static role, type, operations, criteria, state Finds the first type permission for the specified type in the role and adds the object permission to it. If the appropriate type permission is not found, this method creates it.
AddObjectPermission(IPermissionPolicyTypePermissionObject, String, String, Nullable<SecurityPermissionState>) static typePermission, operations, criteria, State Finds the first type permission for the given type in the current role and adds the object permission to it. If the appropriate type permission is not found, it is created.
AddObjectPermission<T>(IPermissionPolicyRole, String, String, Nullable<SecurityPermissionState>) static role, operations, criteria, state Finds the first type permission for the specified type in the role and adds the object permission to it. If the appropriate type permission is not found, this method creates it.