Interface IListItemCollection
Public interface to define a collection of ListItem objects of SharePoint Online
Assembly: PnP.Core.dll
Syntax
public interface IListItemCollection : IQueryable<IListItem>, IQueryable, IAsyncEnumerable<IListItem>, IDataModelCollection<IListItem>, IEnumerable<IListItem>, IEnumerable, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionLoad<IListItem>, IDataModelCollectionDeleteByIntegerId, ISupportModules<IListItemCollection>
Methods
Declaration
IListItem Add(Dictionary<string, object> values, string folderPath = null, FileSystemObjectType underlyingObjectType = FileSystemObjectType.File)
Parameters
Returns
Declaration
Task<IListItem> AddAsync(Dictionary<string, object> values, string folderPath = null, FileSystemObjectType underlyingObjectType = FileSystemObjectType.File)
Parameters
Returns
Declaration
IListItem AddBatch(Batch batch, Dictionary<string, object> values, string folderPath = null, FileSystemObjectType underlyingObjectType = FileSystemObjectType.File)
Parameters
Returns
Declaration
IListItem AddBatch(Dictionary<string, object> values, string folderPath = null, FileSystemObjectType underlyingObjectType = FileSystemObjectType.File)
Parameters
Returns
Declaration
Task<IListItem> AddBatchAsync(Batch batch, Dictionary<string, object> values, string folderPath = null, FileSystemObjectType underlyingObjectType = FileSystemObjectType.File)
Parameters
Returns
Declaration
Task<IListItem> AddBatchAsync(Dictionary<string, object> values, string folderPath = null, FileSystemObjectType underlyingObjectType = FileSystemObjectType.File)
Parameters
Returns
Checks if the collection contains a listitem with a given id
Declaration
Parameters
Returns
|
bool
True if found, false otherwise
|
Method to select a list item by Id
Declaration
IListItem GetById(int id, params Expression<Func<IListItem, object>>[] selectors)
Parameters
Returns
|
IListItem
The resulting list item instance, if any
|
Method to select a list item by Id asynchronously
Declaration
Task<IListItem> GetByIdAsync(int id, params Expression<Func<IListItem, object>>[] selectors)
Parameters
Returns
Declaration
Parameters
|
int
id
Id of the item to recycle
|
Returns
Declaration
Task<Guid> RecycleByIdAsync(int id)
Parameters
|
int
id
Id of the item to recycle
|
Returns
Declaration
void RecycleByIdBatch(Batch batch, int id)
Parameters
|
Batch
batch
Batch to add the request to
|
|
int
id
Id of the item to recycle
|
Declaration
void RecycleByIdBatch(int id)
Parameters
|
int
id
Id of the item to recycle
|
Declaration
Task RecycleByIdBatchAsync(Batch batch, int id)
Parameters
|
Batch
batch
Batch to add the request to
|
|
int
id
Id of the item to recycle
|
Returns
Declaration
Task RecycleByIdBatchAsync(int id)
Parameters
|
int
id
Id of the item to recycle
|
Returns
Extension Methods