Interface ITermSetCollection
- Namespace
- PnP.Core.Model.SharePoint
- Assembly
- PnP.Core.dll
Collection of term sets
public interface ITermSetCollection : IQueryable<ITermSet>, IQueryable, IAsyncEnumerable<ITermSet>, IDataModelCollection<ITermSet>, IEnumerable<ITermSet>, IEnumerable, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionDeleteByStringId, ISupportModules<ITermSetCollection>
- Inherited Members
- Extension Methods
Methods
Add(string, string)
Adds a new term set
ITermSet Add(string name, string description = null)
Parameters
Returns
- ITermSet
Newly added term set
AddAsync(string, string)
Adds a new term set
Task<ITermSet> AddAsync(string name, string description = null)
Parameters
Returns
AddBatch(Batch, string, string)
Adds a new term set
ITermSet AddBatch(Batch batch, string name, string description = null)
Parameters
batchBatchBatch to use
namestringName of the term set
descriptionstringOptional description of the term set
Returns
- ITermSet
Newly added term set
AddBatch(string, string)
Adds a new term set
ITermSet AddBatch(string name, string description = null)
Parameters
Returns
- ITermSet
Newly added term set
AddBatchAsync(Batch, string, string)
Adds a new term set
Task<ITermSet> AddBatchAsync(Batch batch, string name, string description = null)
Parameters
batchBatchBatch to use
namestringName of the term set
descriptionstringOptional description of the term set
Returns
AddBatchAsync(string, string)
Adds a new term set
Task<ITermSet> AddBatchAsync(string name, string description = null)
Parameters
Returns
GetById(string, params Expression<Func<ITermSet, object>>[])
Extension method to select a term set by id
ITermSet GetById(string id, params Expression<Func<ITermSet, object>>[] selectors)
Parameters
idstringThe id to search for
selectorsExpression<Func<ITermSet, object>>[]The expressions declaring the fields to select
Returns
- ITermSet
The resulting term set instance, if any
GetByIdAsync(string, params Expression<Func<ITermSet, object>>[])
Extension method to select a term set by id
Task<ITermSet> GetByIdAsync(string id, params Expression<Func<ITermSet, object>>[] selectors)
Parameters
idstringThe id to search for
selectorsExpression<Func<ITermSet, object>>[]The expressions declaring the fields to select