Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm trying to use the .GetMediaInRecycleBin() method to get a list of all items in the recycle bin.
I've looked through here and here and can't find any way of doing this in Umbraco 8, the best I have so far is this and this feels like a really bad way of doing it?
var mediaService = Current.Services.MediaService;
long pageIndex = 0;
int pageSize = 2147483647; // max int32
var recycled = mediaService.GetPagedMediaInRecycleBin(pageIndex, pageSize, out long totalRecords);
It works, but I would really prefer to use the proper method if anyone can help me implement it that would be great! Thanks in advance!
Any ideas anyone?
Cheers in advance!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted