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

PermissionSettingHelper.EnsureTypePermission Method

Name Parameters Description
EnsureTypePermission(IPermissionPolicyRole, Type) static role, targetType

Searches for the first permission for the specified type in the current role. If the type permission is not found, it is created.

EnsureTypePermission<T>(IPermissionPolicyRole) static role

Searches for the first permission for the specified type in the current role. If the type permission is not found, it is created.