Click or drag to resize
MediaLibraryRolePermissionInfoProvider.SetPermissions Method
Sets permissions in permissionsIds for each role in roleIds.

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 11.0.0
Syntax
C#
public static void SetPermissions(
	int libraryId,
	IList<int> roleIds,
	IList<int> permissionsIds
)

Parameters

libraryId
Type: System.Int32
Media library ID.
roleIds
Type: System.Collections.Generic.IList<Int32>
List of role IDs.
permissionsIds
Type: System.Collections.Generic.IList<Int32>
List of permission IDs.
See Also