Interface IFolderCollection
- Namespace
- PnP.Core.Model.SharePoint
- Assembly
- PnP.Core.dll
Public interface to define a collection of Folder objects
public interface IFolderCollection : IQueryable<IFolder>, IQueryable, IAsyncEnumerable<IFolder>, IDataModelCollection<IFolder>, IEnumerable<IFolder>, IEnumerable, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionLoad<IFolder>, IDataModelCollectionDeleteByGuidId, ISupportModules<IFolderCollection>
- Inherited Members
- Extension Methods
Methods
Add(string)
Add a folder
IFolder Add(string name)
Parameters
namestringThe name of the folder to add
Returns
- IFolder
The newly added folder
AddAsync(string)
Add a folder
Task<IFolder> AddAsync(string name)
Parameters
namestringThe name of the folder to add
Returns
AddBatch(Batch, string)
Add a folder using a specific batch instance
IFolder AddBatch(Batch batch, string name)
Parameters
Returns
- IFolder
The newly added folder
AddBatch(string)
Add a folder
IFolder AddBatch(string name)
Parameters
namestringThe name of the folder to add
Returns
- IFolder
The newly added folder
AddBatchAsync(Batch, string)
Add a folder using a specific batch instance
Task<IFolder> AddBatchAsync(Batch batch, string name)
Parameters
Returns
AddBatchAsync(string)
Add a folder
Task<IFolder> AddBatchAsync(string name)
Parameters
namestringThe name of the folder to add