Interface IListCollection
Public interface to define a collection of List objects of SharePoint Online
Assembly: PnP.Core.dll
Syntax
public interface IListCollection : IDataModelCollection<IList>, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionLoad<IList>, IDataModelCollectionDeleteByGuidId, ISupportModules<IListCollection>
Methods
Declaration
IList Add(string title, ListTemplateType templateType)
Parameters
System.String
title
Title of the list
|
ListTemplateType
templateType
Template type
|
Returns
Declaration
Task<IList> AddAsync(string title, ListTemplateType templateType)
Parameters
System.String
title
Title of the list
|
ListTemplateType
templateType
Template type
|
Returns
Task<IList>
Newly added list
|
Declaration
IList AddBatch(Batch batch, string title, ListTemplateType templateType)
Parameters
Batch
batch
Batch to use
|
System.String
title
Title of the list
|
ListTemplateType
templateType
Template type
|
Returns
Declaration
IList AddBatch(string title, ListTemplateType templateType)
Parameters
System.String
title
Title of the list
|
ListTemplateType
templateType
Template type
|
Returns
Declaration
Task<IList> AddBatchAsync(Batch batch, string title, ListTemplateType templateType)
Parameters
Batch
batch
Batch to use
|
System.String
title
Title of the list
|
ListTemplateType
templateType
Template type
|
Returns
Task<IList>
Newly added list
|
Declaration
Task<IList> AddBatchAsync(string title, ListTemplateType templateType)
Parameters
System.String
title
Title of the list
|
ListTemplateType
templateType
Template type
|
Returns
Task<IList>
Newly added list
|
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
Expression<Func<IList, System.Object>>[]
selectors
The expressions declaring the fields to select
|
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
Expression<Func<IList, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
Task<IList>
The asset library
|
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
Expression<Func<IList, System.Object>>[]
selectors
The expressions declaring the fields to select
|
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
Batch
batch
Batch to add this request to
|
Expression<Func<IList, System.Object>>[]
selectors
The expressions declaring the fields to select
|
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
Expression<Func<IList, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
Task<IList>
The asset library
|
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
Batch
batch
Batch to add this request to
|
Expression<Func<IList, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
Task<IList>
The asset library
|
Method to select a list by id
Declaration
IList GetById(Guid id, params Expression<Func<IList, object>>[] selectors)
Parameters
Guid
id
The id to search for
|
Expression<Func<IList, System.Object>>[]
selectors
The expressions declaring the fields to select
|
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
Guid
id
The id to search for
|
Expression<Func<IList, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
Task<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
Guid
id
The id to search for
|
Expression<Func<IList, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
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
Batch
batch
Batch to add this request to
|
Guid
id
The id to search for
|
Expression<Func<IList, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
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
Guid
id
The id to search for
|
Expression<Func<IList, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
Task<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
Batch
batch
Batch to add this request to
|
Guid
id
The id to search for
|
Expression<Func<IList, System.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 GetByServerRelativeUrl(string serverRelativeUrl, params Expression<Func<IList, object>>[] selectors)
Parameters
System.String
serverRelativeUrl
The server relative url of the list to return
|
Expression<Func<IList, System.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
System.String
serverRelativeUrl
The server relative url of the list to return
|
Expression<Func<IList, System.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
|
System.String
serverRelativeUrl
The server relative url of the list to return
|
Expression<Func<IList, System.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
System.String
serverRelativeUrl
The server relative url of the list to return
|
Expression<Func<IList, System.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
|
System.String
serverRelativeUrl
The server relative url of the list to return
|
Expression<Func<IList, System.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
System.String
serverRelativeUrl
The server relative url of the list to return
|
Expression<Func<IList, System.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
System.String
title
The title to search for
|
Expression<Func<IList, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
IList
The resulting list instance, if any
|
Declaration
Task<IList> GetByTitleAsync(string title, params Expression<Func<IList, object>>[] selectors)
Parameters
System.String
title
The title to search for
|
Expression<Func<IList, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
Task<IList>
The resulting list instance, if any
|
Declaration
IList GetByTitleBatch(Batch batch, string title, params Expression<Func<IList, object>>[] selectors)
Parameters
Batch
batch
Batch to add this request to
|
System.String
title
The title to search for
|
Expression<Func<IList, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
IList
The resulting list instance, if any
|
Declaration
IList GetByTitleBatch(string title, params Expression<Func<IList, object>>[] selectors)
Parameters
System.String
title
The title to search for
|
Expression<Func<IList, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
IList
The resulting list instance, if any
|
Declaration
Task<IList> GetByTitleBatchAsync(Batch batch, string title, params Expression<Func<IList, object>>[] selectors)
Parameters
Batch
batch
Batch to add this request to
|
System.String
title
The title to search for
|
Expression<Func<IList, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
Task<IList>
The resulting list instance, if any
|
Declaration
Task<IList> GetByTitleBatchAsync(string title, params Expression<Func<IList, object>>[] selectors)
Parameters
System.String
title
The title to search for
|
Expression<Func<IList, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
Task<IList>
The resulting list instance, if any
|
Extension Methods