Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Zed 2 posts 72 karma points
    Oct 04, 2019 @ 12:40
    Zed
    0

    Umbraco 8.1.5 .GetMediaInRecycleBin()

    Hey!

    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!

  • Zed 2 posts 72 karma points
    Oct 28, 2019 @ 16:59
    Zed
    0

    Any ideas anyone?

    Cheers in advance!

Please Sign in or register to post replies

Write your reply to:

Draft