Click or drag to resize
RolePermissionInfoProviderSetRolePermissionInfo Method (Int32, Int32)

Note: This API is now obsolete.

Sets (updates or inserts) specified rolePermission.

Namespace: CMS.Modules
Assembly: CMS.Modules (in CMS.Modules.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use IRolePermissionInfoProvider.Add(int, int) instead. To get an instance of the interface's implementation, use dependency injection or access the instance directly - RolePermissionInfo.Provider.")]
public static void SetRolePermissionInfo(
	int roleId,
	int permissionId
)

Parameters

roleId
Type: SystemInt32
RoleID
permissionId
Type: SystemInt32
PermissionID
See Also