Table of Contents

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

object

Author

Gets a value that specifies the user who created the Recycle Bin item.

ISharePointUser Author { get; }

Property Value

ISharePointUser

AuthorEmail

Gets the e-mail address of the user who created the recycle bin item.

string AuthorEmail { get; }

Property Value

string

AuthorName

Gets the name of the user who created the recycle bin item.

string AuthorName { get; }

Property Value

string

DeletedBy

Gets a value that specifies the user who deleted the Recycle Bin item.

ISharePointUser DeletedBy { get; }

Property Value

ISharePointUser

DeletedByEmail

Gets the e-mail address of the user who deleted the recycle bin item.

string DeletedByEmail { get; }

Property Value

string

DeletedByName

Gets the name of the user who deleted the recycle bin item.

string DeletedByName { get; }

Property Value

string

DeletedDate

Gets a value that specifies when the Recycle Bin item was moved to the Recycle Bin.

DateTime DeletedDate { get; }

Property Value

DateTime

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

string

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

string

Id

Gets a value that specifies the identifier of the Recycle Bin item.

Guid Id { get; }

Property Value

Guid

ItemState

Gets a value that specifies the Recycle Bin stage of the Recycle Bin item.

RecycleBinItemState ItemState { get; }

Property Value

RecycleBinItemState

ItemType

Gets a value that specifies the type of the Recycle Bin item.

RecycleBinItemType ItemType { get; }

Property Value

RecycleBinItemType

LeafName

Gets a value that specifies the leaf name of the Recycle Bin item.

string LeafName { get; }

Property Value

string

Size

Gets a value that specifies the size of the Recycle Bin item in bytes.

long Size { get; }

Property Value

long

Title

Gets a value that specifies the title of the Recycle Bin item.

string Title { get; }

Property Value

string

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

Task

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

batch Batch

MoveToSecondStageBatchAsync()

Move the recycle bin item to the second stage recycle bin using the current context batch instance

Task MoveToSecondStageBatchAsync()

Returns

Task

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

batch Batch

Returns

Task

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

Task

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

batch Batch

RestoreBatchAsync()

Restores the recycle bin item to its original location using the current context batch instance

Task RestoreBatchAsync()

Returns

Task

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

batch Batch

Returns

Task