.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

PermissionSettingHelper.AddObjectPermission Method

Name Parameters Description
AddObjectPermission(IPermissionPolicyRole, Type, String, String, Nullable<SecurityPermissionState>) static role, type, operations, criteria, state
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