Interface IFileVersionCollection
Collection of file versions
Assembly: PnP.Core.dll
Syntax
public interface IFileVersionCollection : IDataModelCollection<IFileVersion>, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionLoad<IFileVersion>, ISupportModules<IFileVersionCollection>
Methods
Declaration
void DeleteAllBatch(Batch batch)
Parameters
Batch
batch
Batch to add the request to
|
Declaration
Task DeleteAllBatchAsync()
Returns
Declaration
Task DeleteAllBatchAsync(Batch batch)
Parameters
Batch
batch
Batch to add the request to
|
Returns
Declaration
Parameters
System.Int32
id
Id of the file version to Delete
|
Declaration
Task DeleteByIdAsync(int id)
Parameters
System.Int32
id
Id of the file version to Delete
|
Returns
Declaration
void DeleteByIdBatch(Batch batch, int id)
Parameters
Batch
batch
Batch to add the request to
|
System.Int32
id
Id of the file version to Delete
|
Declaration
void DeleteByIdBatch(int id)
Parameters
System.Int32
id
Id of the file version to Delete
|
Declaration
Task DeleteByIdBatchAsync(Batch batch, int id)
Parameters
Batch
batch
Batch to add the request to
|
System.Int32
id
Id of the file version to Delete
|
Returns
Declaration
Task DeleteByIdBatchAsync(int id)
Parameters
System.Int32
id
Id of the file version to Delete
|
Returns
Declaration
void DeleteByLabel(string label)
Parameters
System.String
label
Label of the file version to Delete
|
Declaration
Task DeleteByLabelAsync(string label)
Parameters
System.String
label
Label of the file version to Delete
|
Returns
Declaration
void DeleteByLabelBatch(Batch batch, string label)
Parameters
Batch
batch
Batch to add the request to
|
System.String
label
Label of the file version to Delete
|
Declaration
void DeleteByLabelBatch(string label)
Parameters
System.String
label
Label of the file version to Delete
|
Declaration
Task DeleteByLabelBatchAsync(Batch batch, string label)
Parameters
Batch
batch
Batch to add the request to
|
System.String
label
Label of the file version to Delete
|
Returns
Declaration
Task DeleteByLabelBatchAsync(string label)
Parameters
System.String
label
Label of the file version to Delete
|
Returns
Method to select a file version by Id
Declaration
IFileVersion GetById(int id, params Expression<Func<IFileVersion, object>>[] selectors)
Parameters
System.Int32
id
The Id to search for
|
Expression<Func<IFileVersion, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
Method to select a file version by Id asynchronously
Declaration
Task<IFileVersion> GetByIdAsync(int id, params Expression<Func<IFileVersion, object>>[] selectors)
Parameters
System.Int32
id
The Id to search for
|
Expression<Func<IFileVersion, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
Task<IFileVersion>
The resulting file version instance, if any
|
Declaration
Parameters
System.Int32
id
Id of the file version to recycle
|
Declaration
Task RecycleByIdAsync(int id)
Parameters
System.Int32
id
Id of the file version to recycle
|
Returns
Declaration
void RecycleByIdBatch(Batch batch, int id)
Parameters
Batch
batch
Batch to add the request to
|
System.Int32
id
Id of the file version to recycle
|
Declaration
void RecycleByIdBatch(int id)
Parameters
System.Int32
id
Id of the file version to recycle
|
Declaration
Task RecycleByIdBatchAsync(Batch batch, int id)
Parameters
Batch
batch
Batch to add the request to
|
System.Int32
id
Id of the file version to recycle
|
Returns
Declaration
Task RecycleByIdBatchAsync(int id)
Parameters
System.Int32
id
Id of the file version to recycle
|
Returns
Declaration
void RecycleByLabel(string label)
Parameters
System.String
label
Label of the file version to recycle
|
Declaration
Task RecycleByLabelAsync(string label)
Parameters
System.String
label
Label of the file version to recycle
|
Returns
Declaration
void RecycleByLabelBatch(Batch batch, string label)
Parameters
Batch
batch
Batch to add the request to
|
System.String
label
Label of the file version to recycle
|
Declaration
void RecycleByLabelBatch(string label)
Parameters
System.String
label
Label of the file version to recycle
|
Declaration
Task RecycleByLabelBatchAsync(Batch batch, string label)
Parameters
Batch
batch
Batch to add the request to
|
System.String
label
Label of the file version to recycle
|
Returns
Declaration
Task RecycleByLabelBatchAsync(string label)
Parameters
System.String
label
Label of the file version to recycle
|
Returns
Declaration
void RestoreByLabel(string label)
Parameters
System.String
label
Label of the file version to restore
|
Declaration
Task RestoreByLabelAsync(string label)
Parameters
System.String
label
Label of the file version to restore
|
Returns
Declaration
void RestoreByLabelBatch(Batch batch, string label)
Parameters
Batch
batch
Batch to add the request to
|
System.String
label
Label of the file version to restore
|
Declaration
void RestoreByLabelBatch(string label)
Parameters
System.String
label
Label of the file version to restore
|
Declaration
Task RestoreByLabelBatchAsync(Batch batch, string label)
Parameters
Batch
batch
Batch to add the request to
|
System.String
label
Label of the file version to restore
|
Returns
Declaration
Task RestoreByLabelBatchAsync(string label)
Parameters
System.String
label
Label of the file version to restore
|
Returns
Extension Methods