Interface IRecycleBinItem
- Namespace
- PnP.Core.Model.SharePoint
- Assembly
- PnP.Core.dll
Public interface to define a RecycleBinItem object
public interface IRecycleBinItem : IDataModel<IRecycleBinItem>, IDataModelParent, IDataModelWithContext, ISupportModules<IRecycleBinItem>, IDataModelGet<IRecycleBinItem>, IDataModelLoad<IRecycleBinItem>, IDataModelUpdate, IDataModelDelete, IQueryableDataModel
- Inherited Members
- Extension Methods
Properties
All
A special property used to add an asterisk to a $select statement
object All { get; }
Property Value
Author
Gets a value that specifies the user who created the Recycle Bin item.
ISharePointUser Author { get; }
Property Value
AuthorEmail
Gets the e-mail address of the user who created the recycle bin item.
string AuthorEmail { get; }
Property Value
AuthorName
Gets the name of the user who created the recycle bin item.
string AuthorName { get; }
Property Value
DeletedBy
Gets a value that specifies the user who deleted the Recycle Bin item.
ISharePointUser DeletedBy { get; }
Property Value
DeletedByEmail
Gets the e-mail address of the user who deleted the recycle bin item.
string DeletedByEmail { get; }
Property Value
DeletedByName
Gets the name of the user who deleted the recycle bin item.
string DeletedByName { get; }
Property Value
DeletedDate
Gets a value that specifies when the Recycle Bin item was moved to the Recycle Bin.
DateTime DeletedDate { get; }
Property Value
DeletedDateLocalFormatted
Gets a value that specifies when the Recycle Bin item was moved to the Recycle Bin formatted in the local date.
string DeletedDateLocalFormatted { get; }
Property Value
DirName
Gets a value that specifies the site relative URL of the list or folder that originally contained the Recycle Bin item.
string DirName { get; }
Property Value
Id
Gets a value that specifies the identifier of the Recycle Bin item.
Guid Id { get; }
Property Value
ItemState
Gets a value that specifies the Recycle Bin stage of the Recycle Bin item.
RecycleBinItemState ItemState { get; }
Property Value
ItemType
Gets a value that specifies the type of the Recycle Bin item.
RecycleBinItemType ItemType { get; }
Property Value
LeafName
Gets a value that specifies the leaf name of the Recycle Bin item.
string LeafName { get; }
Property Value
Size
Gets a value that specifies the size of the Recycle Bin item in bytes.
long Size { get; }
Property Value
Title
Gets a value that specifies the title of the Recycle Bin item.
string Title { get; }
Property Value
Methods
MoveToSecondStage()
Move the recycle bin item to the second stage recycle bin
void MoveToSecondStage()
MoveToSecondStageAsync()
Move the recycle bin item to the second stage recycle bin
Task MoveToSecondStageAsync()
Returns
MoveToSecondStageBatch()
Move the recycle bin item to the second stage recycle bin using the current context batch instance
void MoveToSecondStageBatch()
MoveToSecondStageBatch(Batch)
Move the recycle bin item to the second stage recycle bin using a specific batch instance
The batch instance to use.void MoveToSecondStageBatch(Batch batch)
Parameters
batchBatch
MoveToSecondStageBatchAsync()
Move the recycle bin item to the second stage recycle bin using the current context batch instance
Task MoveToSecondStageBatchAsync()
Returns
MoveToSecondStageBatchAsync(Batch)
Move the recycle bin item to the second stage recycle bin using a specific batch instance
The batch instance to use.Task MoveToSecondStageBatchAsync(Batch batch)
Parameters
batchBatch
Returns
Restore()
Restores the recycle bin item to its original location.
void Restore()
RestoreAsync()
Restores the recycle bin item to its original location.
Task RestoreAsync()
Returns
RestoreBatch()
Restores the recycle bin item to its original location using the current context batch instance
void RestoreBatch()
RestoreBatch(Batch)
Restores the recycle bin item to its original location using a specific batch instance
The batch instance to use.void RestoreBatch(Batch batch)
Parameters
batchBatch
RestoreBatchAsync()
Restores the recycle bin item to its original location using the current context batch instance
Task RestoreBatchAsync()
Returns
RestoreBatchAsync(Batch)
Restores the recycle bin item to its original location using a specific batch instance
The batch instance to use.Task RestoreBatchAsync(Batch batch)
Parameters
batchBatch