public AddPermissionsGroup ( string group, RoleType role ) : bool | ||
group | string | |
role | RoleType | |
return | bool |
/// <summary> /// Add permissions to the library /// </summary> /// <param name="list"></param> /// <param name="group"></param> /// <param name="role"></param> /// <returns></returns> public static bool AddPermisionLibrary(this SPList list, string group, RoleType role) { try { var listSharePoint = new ListSharePoint(list.ParentWeb, Logger, list.Title); return listSharePoint.AddPermissionsGroup(group, role); } catch (Exception exception) { Logger.Error(string.Concat("Error AddPermisionLibrary:", exception.Message)); return false; } }