Interface IListCollection
Public interface to define a collection of List objects of SharePoint Online
Assembly: PnP.Core.dll
Syntax
public interface IListCollection : IQueryable<IList>, IQueryable, IAsyncEnumerable<IList>, IDataModelCollection<IList>, IEnumerable<IList>, IEnumerable, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionLoad<IList>, IDataModelCollectionDeleteByGuidId, ISupportModules<IListCollection>
Methods
Declaration
IList Add(string title, ListTemplateType templateType)
Parameters
Returns
Declaration
Task<IList> AddAsync(string title, ListTemplateType templateType)
Parameters
Returns
Declaration
IList AddBatch(Batch batch, string title, ListTemplateType templateType)
Parameters
Returns
Declaration
IList AddBatch(string title, ListTemplateType templateType)
Parameters
Returns
Declaration
Task<IList> AddBatchAsync(Batch batch, string title, ListTemplateType templateType)
Parameters
Returns
Declaration
Task<IList> AddBatchAsync(string title, ListTemplateType templateType)
Parameters
Returns
Ensures there's an Asset Library in the site, if not present it will be created
Declaration
IList EnsureSiteAssetsLibrary(params Expression<Func<IList, object>>[] selectors)
Parameters
Returns
Ensures there's an Asset Library in the site, if not present it will be created
Declaration
Task<IList> EnsureSiteAssetsLibraryAsync(params Expression<Func<IList, object>>[] selectors)
Parameters
Returns
Ensures there's an Asset Library in the site, if not present it will be created
Declaration
IList EnsureSiteAssetsLibraryBatch(Batch batch, params Expression<Func<IList, object>>[] selectors)
Parameters
Returns
Ensures there's an Asset Library in the site, if not present it will be created
Declaration
IList EnsureSiteAssetsLibraryBatch(params Expression<Func<IList, object>>[] selectors)
Parameters
Returns
Ensures there's an Asset Library in the site, if not present it will be created
Declaration
Task<IList> EnsureSiteAssetsLibraryBatchAsync(Batch batch, params Expression<Func<IList, object>>[] selectors)
Parameters
Returns
Ensures there's an Asset Library in the site, if not present it will be created
Declaration
Task<IList> EnsureSiteAssetsLibraryBatchAsync(params Expression<Func<IList, object>>[] selectors)
Parameters
Returns
Method to select a list by id
Declaration
IList GetById(Guid id, params Expression<Func<IList, object>>[] selectors)
Parameters
Returns
|
IList
The resulting list instance, if any
|
Method to select a list by id
Declaration
Task<IList> GetByIdAsync(Guid id, params Expression<Func<IList, object>>[] selectors)
Parameters
Returns
|
Task<IList>
The resulting list instance, if any
|
Method to select a list by id
Declaration
IList GetByIdBatch(Batch batch, Guid id, params Expression<Func<IList, object>>[] selectors)
Parameters
Returns
|
IList
The resulting list instance, if any
|
Method to select a list by id
Declaration
IList GetByIdBatch(Guid id, params Expression<Func<IList, object>>[] selectors)
Parameters
Returns
|
IList
The resulting list instance, if any
|
Method to select a list by id
Declaration
Task<IList> GetByIdBatchAsync(Batch batch, Guid id, params Expression<Func<IList, object>>[] selectors)
Parameters
Returns
|
Task<IList>
The resulting list instance, if any
|
Method to select a list by id
Declaration
Task<IList> GetByIdBatchAsync(Guid id, params Expression<Func<IList, object>>[] selectors)
Parameters
Returns
|
Task<IList>
The resulting list instance, if any
|
Method to select a list by server relative url
Declaration
IList GetByServerRelativeUrl(string serverRelativeUrl, params Expression<Func<IList, object>>[] selectors)
Parameters
|
string
serverRelativeUrl
The server relative url of the list to return
|
|
Expression<Func<IList, object>>[]
selectors
The expressions declaring the fields to select
|
Returns
|
IList
The resulting list instance, if any
|
Method to select a list by server relative url
Declaration
Task<IList> GetByServerRelativeUrlAsync(string serverRelativeUrl, params Expression<Func<IList, object>>[] selectors)
Parameters
|
string
serverRelativeUrl
The server relative url of the list to return
|
|
Expression<Func<IList, object>>[]
selectors
The expressions declaring the fields to select
|
Returns
|
Task<IList>
The resulting list instance, if any
|
Method to select a list by server relative url
Declaration
IList GetByServerRelativeUrlBatch(Batch batch, string serverRelativeUrl, params Expression<Func<IList, object>>[] selectors)
Parameters
|
Batch
batch
Batch to add this request to
|
|
string
serverRelativeUrl
The server relative url of the list to return
|
|
Expression<Func<IList, object>>[]
selectors
The expressions declaring the fields to select
|
Returns
|
IList
The resulting list instance, if any
|
Method to select a list by server relative url
Declaration
IList GetByServerRelativeUrlBatch(string serverRelativeUrl, params Expression<Func<IList, object>>[] selectors)
Parameters
|
string
serverRelativeUrl
The server relative url of the list to return
|
|
Expression<Func<IList, object>>[]
selectors
The expressions declaring the fields to select
|
Returns
|
IList
The resulting list instance, if any
|
Method to select a list by server relative url
Declaration
Task<IList> GetByServerRelativeUrlBatchAsync(Batch batch, string serverRelativeUrl, params Expression<Func<IList, object>>[] selectors)
Parameters
|
Batch
batch
Batch to add this request to
|
|
string
serverRelativeUrl
The server relative url of the list to return
|
|
Expression<Func<IList, object>>[]
selectors
The expressions declaring the fields to select
|
Returns
|
Task<IList>
The resulting list instance, if any
|
Method to select a list by server relative url
Declaration
Task<IList> GetByServerRelativeUrlBatchAsync(string serverRelativeUrl, params Expression<Func<IList, object>>[] selectors)
Parameters
|
string
serverRelativeUrl
The server relative url of the list to return
|
|
Expression<Func<IList, object>>[]
selectors
The expressions declaring the fields to select
|
Returns
|
Task<IList>
The resulting list instance, if any
|
Declaration
IList GetByTitle(string title, params Expression<Func<IList, object>>[] selectors)
Parameters
Returns
|
IList
The resulting list instance, if any
|
Declaration
Task<IList> GetByTitleAsync(string title, params Expression<Func<IList, object>>[] selectors)
Parameters
Returns
|
Task<IList>
The resulting list instance, if any
|
Declaration
IList GetByTitleBatch(Batch batch, string title, params Expression<Func<IList, object>>[] selectors)
Parameters
Returns
|
IList
The resulting list instance, if any
|
Declaration
IList GetByTitleBatch(string title, params Expression<Func<IList, object>>[] selectors)
Parameters
Returns
|
IList
The resulting list instance, if any
|
Declaration
Task<IList> GetByTitleBatchAsync(Batch batch, string title, params Expression<Func<IList, object>>[] selectors)
Parameters
Returns
|
Task<IList>
The resulting list instance, if any
|
Declaration
Task<IList> GetByTitleBatchAsync(string title, params Expression<Func<IList, object>>[] selectors)
Parameters
Returns
|
Task<IList>
The resulting list instance, if any
|
Extension Methods