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

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine.Web.UI (in CMS.PortalEngine.Web.UI.dll) Version: 13.0.131
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