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
DeleteAllBatch()
Delete all file versions
void DeleteAllBatch()
DeleteAllBatch(Batch)
Delete all file versions
void DeleteAllBatch(Batch batch)
Parameters
batchBatchBatch to add the request to
DeleteAllBatchAsync()
Delete all file versions
Task DeleteAllBatchAsync()
Returns
DeleteAllBatchAsync(Batch)
Delete all file versions
Task DeleteAllBatchAsync(Batch batch)
Parameters
batchBatchBatch to add the request to
Returns
DeleteById(int)
Delete the file version
void DeleteById(int id)
Parameters
idintId of the file version to Delete
DeleteByIdAsync(int)
Delete the file version
Task DeleteByIdAsync(int id)
Parameters
idintId of the file version to Delete
Returns
DeleteByIdBatch(Batch, int)
Delete the file version
void DeleteByIdBatch(Batch batch, int id)
Parameters
DeleteByIdBatch(int)
Delete the file version
void DeleteByIdBatch(int id)
Parameters
idintId of the file version to Delete
DeleteByIdBatchAsync(Batch, int)
Delete the file version
Task DeleteByIdBatchAsync(Batch batch, int id)
Parameters
Returns
DeleteByIdBatchAsync(int)
Delete the file version
Task DeleteByIdBatchAsync(int id)
Parameters
idintId of the file version to Delete
Returns
DeleteByLabel(string)
Delete the file version
void DeleteByLabel(string label)
Parameters
labelstringLabel of the file version to Delete
DeleteByLabelAsync(string)
Delete the file version
Task DeleteByLabelAsync(string label)
Parameters
labelstringLabel of the file version to Delete
Returns
DeleteByLabelBatch(Batch, string)
Delete the file version
void DeleteByLabelBatch(Batch batch, string label)
Parameters
DeleteByLabelBatch(string)
Delete the file version
void DeleteByLabelBatch(string label)
Parameters
labelstringLabel of the file version to Delete
DeleteByLabelBatchAsync(Batch, string)
Delete the file version
Task DeleteByLabelBatchAsync(Batch batch, string label)
Parameters
Returns
DeleteByLabelBatchAsync(string)
Delete the file version
Task DeleteByLabelBatchAsync(string label)
Parameters
labelstringLabel of the file version to Delete
Returns
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
idintThe Id to search for
selectorsExpression<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
idintThe Id to search for
selectorsExpression<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
idintId of the file version to recycle
RecycleByIdAsync(int)
Recycle the file version
Task RecycleByIdAsync(int id)
Parameters
idintId of the file version to recycle
Returns
RecycleByIdBatch(Batch, int)
Recycle the file version
void RecycleByIdBatch(Batch batch, int id)
Parameters
RecycleByIdBatch(int)
Recycle the file version
void RecycleByIdBatch(int id)
Parameters
idintId of the file version to recycle
RecycleByIdBatchAsync(Batch, int)
Recycle the file version
Task RecycleByIdBatchAsync(Batch batch, int id)
Parameters
Returns
RecycleByIdBatchAsync(int)
Recycle the file version
Task RecycleByIdBatchAsync(int id)
Parameters
idintId of the file version to recycle
Returns
RecycleByLabel(string)
Recycle the file version
void RecycleByLabel(string label)
Parameters
labelstringLabel of the file version to recycle
RecycleByLabelAsync(string)
Recycle the file version
Task RecycleByLabelAsync(string label)
Parameters
labelstringLabel of the file version to recycle
Returns
RecycleByLabelBatch(Batch, string)
Recycle the file version
void RecycleByLabelBatch(Batch batch, string label)
Parameters
RecycleByLabelBatch(string)
Recycle the file version
void RecycleByLabelBatch(string label)
Parameters
labelstringLabel of the file version to recycle
RecycleByLabelBatchAsync(Batch, string)
Recycle the file version
Task RecycleByLabelBatchAsync(Batch batch, string label)
Parameters
Returns
RecycleByLabelBatchAsync(string)
Recycle the file version
Task RecycleByLabelBatchAsync(string label)
Parameters
labelstringLabel of the file version to recycle
Returns
RestoreByLabel(string)
Restore the file version
void RestoreByLabel(string label)
Parameters
labelstringLabel of the file version to restore
RestoreByLabelAsync(string)
Restore the file version
Task RestoreByLabelAsync(string label)
Parameters
labelstringLabel of the file version to restore
Returns
RestoreByLabelBatch(Batch, string)
Restore the file version
void RestoreByLabelBatch(Batch batch, string label)
Parameters
RestoreByLabelBatch(string)
Restore the file version
void RestoreByLabelBatch(string label)
Parameters
labelstringLabel of the file version to restore
RestoreByLabelBatchAsync(Batch, string)
Restore the file version
Task RestoreByLabelBatchAsync(Batch batch, string label)
Parameters
Returns
RestoreByLabelBatchAsync(string)
Restore the file version
Task RestoreByLabelBatchAsync(string label)
Parameters
labelstringLabel of the file version to restore