PermissionSettingHelper.SetTypePermission Method

Name Description
SetTypePermission(IPermissionPolicyRole, Type, String, Nullable<SecurityPermissionState>)

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>)

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.