Table of Contents

Interface IFileVersionCollection

Namespace
PnP.Core.Model.SharePoint
Assembly
PnP.Core.dll

Collection of file versions

public interface IFileVersionCollection : IQueryable<IFileVersion>, IQueryable, IAsyncEnumerable<IFileVersion>, IDataModelCollection<IFileVersion>, IEnumerable<IFileVersion>, IEnumerable, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionLoad<IFileVersion>, ISupportModules<IFileVersionCollection>
Inherited Members
Extension Methods

Methods

DeleteAll()

Delete all file versions

void DeleteAll()

DeleteAllAsync()

Delete all file versions

Task DeleteAllAsync()

Returns

Task

DeleteAllBatch()

Delete all file versions

void DeleteAllBatch()

DeleteAllBatch(Batch)

Delete all file versions

void DeleteAllBatch(Batch batch)

Parameters

batch Batch

Batch to add the request to

DeleteAllBatchAsync()

Delete all file versions

Task DeleteAllBatchAsync()

Returns

Task

DeleteAllBatchAsync(Batch)

Delete all file versions

Task DeleteAllBatchAsync(Batch batch)

Parameters

batch Batch

Batch to add the request to

Returns

Task

DeleteById(int)

Delete the file version

void DeleteById(int id)

Parameters

id int

Id of the file version to Delete

DeleteByIdAsync(int)

Delete the file version

Task DeleteByIdAsync(int id)

Parameters

id int

Id of the file version to Delete

Returns

Task

DeleteByIdBatch(Batch, int)

Delete the file version

void DeleteByIdBatch(Batch batch, int id)

Parameters

batch Batch

Batch to add the request to

id int

Id of the file version to Delete

DeleteByIdBatch(int)

Delete the file version

void DeleteByIdBatch(int id)

Parameters

id int

Id of the file version to Delete

DeleteByIdBatchAsync(Batch, int)

Delete the file version

Task DeleteByIdBatchAsync(Batch batch, int id)

Parameters

batch Batch

Batch to add the request to

id int

Id of the file version to Delete

Returns

Task

DeleteByIdBatchAsync(int)

Delete the file version

Task DeleteByIdBatchAsync(int id)

Parameters

id int

Id of the file version to Delete

Returns

Task

DeleteByLabel(string)

Delete the file version

void DeleteByLabel(string label)

Parameters

label string

Label of the file version to Delete

DeleteByLabelAsync(string)

Delete the file version

Task DeleteByLabelAsync(string label)

Parameters

label string

Label of the file version to Delete

Returns

Task

DeleteByLabelBatch(Batch, string)

Delete the file version

void DeleteByLabelBatch(Batch batch, string label)

Parameters

batch Batch

Batch to add the request to

label string

Label of the file version to Delete

DeleteByLabelBatch(string)

Delete the file version

void DeleteByLabelBatch(string label)

Parameters

label string

Label of the file version to Delete

DeleteByLabelBatchAsync(Batch, string)

Delete the file version

Task DeleteByLabelBatchAsync(Batch batch, string label)

Parameters

batch Batch

Batch to add the request to

label string

Label of the file version to Delete

Returns

Task

DeleteByLabelBatchAsync(string)

Delete the file version

Task DeleteByLabelBatchAsync(string label)

Parameters

label string

Label of the file version to Delete

Returns

Task

GetById(int, params Expression<Func<IFileVersion, object>>[])

Method to select a file version by Id

IFileVersion GetById(int id, params Expression<Func<IFileVersion, object>>[] selectors)

Parameters

id int

The Id to search for

selectors Expression<Func<IFileVersion, object>>[]

The expressions declaring the fields to select

Returns

IFileVersion

The resulting file version instance, if any

GetByIdAsync(int, params Expression<Func<IFileVersion, object>>[])

Method to select a file version by Id asynchronously

Task<IFileVersion> GetByIdAsync(int id, params Expression<Func<IFileVersion, object>>[] selectors)

Parameters

id int

The Id to search for

selectors Expression<Func<IFileVersion, object>>[]

The expressions declaring the fields to select

Returns

Task<IFileVersion>

The resulting file version instance, if any

RecycleById(int)

Recycle the file version

void RecycleById(int id)

Parameters

id int

Id of the file version to recycle

RecycleByIdAsync(int)

Recycle the file version

Task RecycleByIdAsync(int id)

Parameters

id int

Id of the file version to recycle

Returns

Task

RecycleByIdBatch(Batch, int)

Recycle the file version

void RecycleByIdBatch(Batch batch, int id)

Parameters

batch Batch

Batch to add the request to

id int

Id of the file version to recycle

RecycleByIdBatch(int)

Recycle the file version

void RecycleByIdBatch(int id)

Parameters

id int

Id of the file version to recycle

RecycleByIdBatchAsync(Batch, int)

Recycle the file version

Task RecycleByIdBatchAsync(Batch batch, int id)

Parameters

batch Batch

Batch to add the request to

id int

Id of the file version to recycle

Returns

Task

RecycleByIdBatchAsync(int)

Recycle the file version

Task RecycleByIdBatchAsync(int id)

Parameters

id int

Id of the file version to recycle

Returns

Task

RecycleByLabel(string)

Recycle the file version

void RecycleByLabel(string label)

Parameters

label string

Label of the file version to recycle

RecycleByLabelAsync(string)

Recycle the file version

Task RecycleByLabelAsync(string label)

Parameters

label string

Label of the file version to recycle

Returns

Task

RecycleByLabelBatch(Batch, string)

Recycle the file version

void RecycleByLabelBatch(Batch batch, string label)

Parameters

batch Batch

Batch to add the request to

label string

Label of the file version to recycle

RecycleByLabelBatch(string)

Recycle the file version

void RecycleByLabelBatch(string label)

Parameters

label string

Label of the file version to recycle

RecycleByLabelBatchAsync(Batch, string)

Recycle the file version

Task RecycleByLabelBatchAsync(Batch batch, string label)

Parameters

batch Batch

Batch to add the request to

label string

Label of the file version to recycle

Returns

Task

RecycleByLabelBatchAsync(string)

Recycle the file version

Task RecycleByLabelBatchAsync(string label)

Parameters

label string

Label of the file version to recycle

Returns

Task

RestoreByLabel(string)

Restore the file version

void RestoreByLabel(string label)

Parameters

label string

Label of the file version to restore

RestoreByLabelAsync(string)

Restore the file version

Task RestoreByLabelAsync(string label)

Parameters

label string

Label of the file version to restore

Returns

Task

RestoreByLabelBatch(Batch, string)

Restore the file version

void RestoreByLabelBatch(Batch batch, string label)

Parameters

batch Batch

Batch to add the request to

label string

Label of the file version to restore

RestoreByLabelBatch(string)

Restore the file version

void RestoreByLabelBatch(string label)

Parameters

label string

Label of the file version to restore

RestoreByLabelBatchAsync(Batch, string)

Restore the file version

Task RestoreByLabelBatchAsync(Batch batch, string label)

Parameters

batch Batch

Batch to add the request to

label string

Label of the file version to restore

Returns

Task

RestoreByLabelBatchAsync(string)

Restore the file version

Task RestoreByLabelBatchAsync(string label)

Parameters

label string

Label of the file version to restore

Returns

Task