Skip to main content
A newer version of this page is available. .

PermissionSettingHelper.SetTypePermission Method

Name Parameters Description
SetTypePermission(IPermissionPolicyRole, Type, String, Nullable<SecurityPermissionState>) static role, targetType, operations, state Searches for the first permission for the specified type in the current role, and rewrites its settings according to the specified parameters. If the type permission is not found, it is created.
SetTypePermission<T>(IPermissionPolicyRole, String, Nullable<SecurityPermissionState>) static role, operations, state Searches for the first permission for the specified type in the current role, and rewrites its settings according to the specified parameters. If the type permission is not found, it is created.