Skip to main content
.NET 8.0+

PermissionSettingHelper.AddTypePermissionsRecursively Method

Name Parameters Description
AddTypePermissionsRecursively(IPermissionPolicyRole, Type, String, Nullable<SecurityPermissionState>, ITypesInfo) static role, targetType, operations, state, typesInfo Recursively adds type permissions to the current role for each type which is assignable from the given type (or is equal to it). If the permission for the type already exists, then the settings of this existing type permission are altered.
AddTypePermissionsRecursively<T>(IPermissionPolicyRole, String, Nullable<SecurityPermissionState>, ITypesInfo) static role, operations, state, typesInfo Recursively adds type permissions to the current role for each type which is assignable from the given type (or is equal to it). If the permission for the type exists already, then the settings of this existing type permission are altered.