/
RecycleBinQueryOptions.cs
40 lines (33 loc) · 1.5 KB
/
RecycleBinQueryOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
namespace PnP.Core.Model.SharePoint
{
/// <summary>
/// Defines the recycle bin query criteria
/// </summary>
public class RecycleBinQueryOptions
{
/// <summary>
/// Gets or sets a string used to get the next set of rows in the page.
/// </summary>
public string PagingInfo { get; set; }
/// <summary>
/// Gets or sets a limit for the number of items returned in the query per page. Defaults to 50.
/// </summary>
public int RowLimit { get; set; } = 50;
/// <summary>
/// Gets or sets a Boolean value that specifies whether to sort in ascending order. Defaults to true.
/// </summary>
public bool IsAscending { get; set; } = true;
/// <summary>
/// Gets or sets the column by which to order the Recycle Bin query. Defaults to <see cref="RecycleBinOrderBy.Title"/>
/// </summary>
public RecycleBinOrderBy OrderBy { get; set; } = RecycleBinOrderBy.Title;
/// <summary>
/// Gets or sets the Recycle Bin stage of items to return in the query. Defaults to <see cref="RecycleBinItemState.FirstStageRecycleBin"/>.
/// </summary>
public RecycleBinItemState ItemState { get; set; } = RecycleBinItemState.FirstStageRecycleBin;
/// <summary>
/// Gets or sets a Boolean value that specifies whether to get items deleted by other users. Defaults to false.
/// </summary>
public bool ShowOnlyMyItems { get; set; } = false;
}
}