Interface IRecycleBinItemCollection
- Namespace
- PnP.Core.Model.SharePoint
- Assembly
- PnP.Core.dll
Public interface to define a collection of RecycleBinItem objects
public interface IRecycleBinItemCollection : IQueryable<IRecycleBinItem>, IQueryable, IAsyncEnumerable<IRecycleBinItem>, IDataModelCollection<IRecycleBinItem>, IEnumerable<IRecycleBinItem>, IEnumerable, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionLoad<IRecycleBinItem>, IDataModelCollectionDeleteByGuidId, ISupportModules<IRecycleBinItemCollection>
- Inherited Members
- Extension Methods
Methods
DeleteAll()
Permanently deletes all Recycle Bin items.
void DeleteAll()
DeleteAllAsync()
Permanently deletes all Recycle Bin items.
Task DeleteAllAsync()
Returns
DeleteAllBatch()
Permanently deletes all Recycle Bin items using the current context batch instance.
void DeleteAllBatch()
DeleteAllBatch(Batch)
Permanently deletes all Recycle Bin items using a specific batch instance.
void DeleteAllBatch(Batch batch)
Parameters
batchBatch
DeleteAllBatchAsync()
Permanently deletes all Recycle Bin items using the current context batch instance.
Task DeleteAllBatchAsync()
Returns
DeleteAllBatchAsync(Batch)
Permanently deletes all Recycle Bin items using a specific batch instance.
Task DeleteAllBatchAsync(Batch batch)
Parameters
batchBatch
Returns
DeleteAllSecondStageItems()
Permanently deletes second stage Recycle Bin items.
void DeleteAllSecondStageItems()
DeleteAllSecondStageItemsAsync()
Permanently deletes second stage Recycle Bin items.
Task DeleteAllSecondStageItemsAsync()
Returns
DeleteAllSecondStageItemsBatch()
Permanently deletes all Recycle Bin items using the current context batch instance.
void DeleteAllSecondStageItemsBatch()
DeleteAllSecondStageItemsBatch(Batch)
Permanently deletes second stage Recycle Bin items using a specific batch instance.
void DeleteAllSecondStageItemsBatch(Batch batch)
Parameters
batchBatch
DeleteAllSecondStageItemsBatchAsync()
Permanently deletes second stage Recycle Bin items using the current context batch instance.
Task DeleteAllSecondStageItemsBatchAsync()
Returns
DeleteAllSecondStageItemsBatchAsync(Batch)
Permanently deletes second stage Recycle Bin items using a specific batch instance.
Task DeleteAllSecondStageItemsBatchAsync(Batch batch)
Parameters
batchBatch
Returns
GetById(Guid, params Expression<Func<IRecycleBinItem, object>>[])
Method to select a recycle bin item (IRecycleBinItem) by id
IRecycleBinItem GetById(Guid id, params Expression<Func<IRecycleBinItem, object>>[] selectors)
Parameters
idGuidThe Id to search for
selectorsExpression<Func<IRecycleBinItem, object>>[]The expressions declaring the fields to select
Returns
- IRecycleBinItem
The resulting recycle bin item instance, if any
GetByIdAsync(Guid, params Expression<Func<IRecycleBinItem, object>>[])
Method to select a recycle bin item (IRecycleBinItem) by id asynchronously
Task<IRecycleBinItem> GetByIdAsync(Guid id, params Expression<Func<IRecycleBinItem, object>>[] selectors)
Parameters
idGuidThe Id to search for
selectorsExpression<Func<IRecycleBinItem, object>>[]The expressions declaring the fields to select
Returns
- Task<IRecycleBinItem>
The resulting recycle bin item instance, if any
MoveAllToSecondStage()
Move all Recycle Bin items to second stage.
void MoveAllToSecondStage()
MoveAllToSecondStageAsync()
Move all Recycle Bin items to second stage.
Task MoveAllToSecondStageAsync()
Returns
MoveAllToSecondStageBatch()
Move all Recycle Bin items to second stage using the current context batch instance.
void MoveAllToSecondStageBatch()
MoveAllToSecondStageBatch(Batch)
Move all Recycle Bin items to second stage using a specific batch instance.
void MoveAllToSecondStageBatch(Batch batch)
Parameters
batchBatch
MoveAllToSecondStageBatchAsync()
Move all Recycle Bin items to second stage using the current context batch instance.
Task MoveAllToSecondStageBatchAsync()
Returns
MoveAllToSecondStageBatchAsync(Batch)
Move all Recycle Bin items to second stage using a specific batch instance.
Task MoveAllToSecondStageBatchAsync(Batch batch)
Parameters
batchBatch
Returns
RestoreAll()
Restores all Recycle Bin items to their original locations.
void RestoreAll()
RestoreAllAsync()
Restores all Recycle Bin items to their original locations.
Task RestoreAllAsync()
Returns
RestoreAllBatch()
Restores all Recycle Bin items to their original locations using the current context batch instance.
void RestoreAllBatch()
RestoreAllBatch(Batch)
Restores all Recycle Bin items to their original locations using a specific batch instance.
void RestoreAllBatch(Batch batch)
Parameters
batchBatch
RestoreAllBatchAsync()
Restores all Recycle Bin items to their original locations using the current context batch instance.
Task RestoreAllBatchAsync()
Returns
RestoreAllBatchAsync(Batch)
Restores all Recycle Bin items to their original locations using a specific batch instance.
Task RestoreAllBatchAsync(Batch batch)
Parameters
batchBatch