Click or drag to resize
WidgetRoleInfoProviderAddRoleToWidget Method
Adds specified role and permission to the widget.

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 11.0.0
Syntax
C#
public static void AddRoleToWidget(
	int roleId,
	int widgetId,
	int permissionId
)

Parameters

roleId
Type: SystemInt32
Role ID
widgetId
Type: SystemInt32
Widget ID
permissionId
Type: SystemInt32
Permission ID
See Also