Table of Contents

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

Task

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

batch Batch

DeleteAllBatchAsync()

Permanently deletes all Recycle Bin items using the current context batch instance.

Task DeleteAllBatchAsync()

Returns

Task

DeleteAllBatchAsync(Batch)

Permanently deletes all Recycle Bin items using a specific batch instance.

Task DeleteAllBatchAsync(Batch batch)

Parameters

batch Batch

Returns

Task

DeleteAllSecondStageItems()

Permanently deletes second stage Recycle Bin items.

void DeleteAllSecondStageItems()

DeleteAllSecondStageItemsAsync()

Permanently deletes second stage Recycle Bin items.

Task DeleteAllSecondStageItemsAsync()

Returns

Task

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

batch Batch

DeleteAllSecondStageItemsBatchAsync()

Permanently deletes second stage Recycle Bin items using the current context batch instance.

Task DeleteAllSecondStageItemsBatchAsync()

Returns

Task

DeleteAllSecondStageItemsBatchAsync(Batch)

Permanently deletes second stage Recycle Bin items using a specific batch instance.

Task DeleteAllSecondStageItemsBatchAsync(Batch batch)

Parameters

batch Batch

Returns

Task

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

id Guid

The Id to search for

selectors Expression<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

id Guid

The Id to search for

selectors Expression<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

Task

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

batch Batch

MoveAllToSecondStageBatchAsync()

Move all Recycle Bin items to second stage using the current context batch instance.

Task MoveAllToSecondStageBatchAsync()

Returns

Task

MoveAllToSecondStageBatchAsync(Batch)

Move all Recycle Bin items to second stage using a specific batch instance.

Task MoveAllToSecondStageBatchAsync(Batch batch)

Parameters

batch Batch

Returns

Task

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

Task

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

batch Batch

RestoreAllBatchAsync()

Restores all Recycle Bin items to their original locations using the current context batch instance.

Task RestoreAllBatchAsync()

Returns

Task

RestoreAllBatchAsync(Batch)

Restores all Recycle Bin items to their original locations using a specific batch instance.

Task RestoreAllBatchAsync(Batch batch)

Parameters

batch Batch

Returns

Task