Interface ITermCollection
- Namespace
- PnP.Core.Model.SharePoint
- Assembly
- PnP.Core.dll
Collection of terms
public interface ITermCollection : IQueryable<ITerm>, IQueryable, IAsyncEnumerable<ITerm>, IDataModelCollection<ITerm>, IEnumerable<ITerm>, IEnumerable, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionDeleteByStringId, ISupportModules<ITermCollection>
- Inherited Members
- Extension Methods
Methods
Add(string, string)
Adds a new term
ITerm Add(string name, string description = null)
Parameters
Returns
- ITerm
Newly added term
AddAsync(string, string)
Adds a new term
Task<ITerm> AddAsync(string name, string description = null)
Parameters
Returns
AddBatch(Batch, string, string)
Adds a new term
ITerm AddBatch(Batch batch, string name, string description = null)
Parameters
batchBatchBatch to use
namestringName of the term
descriptionstringOptional description of the term
Returns
- ITerm
Newly added term
AddBatch(string, string)
Adds a new term
ITerm AddBatch(string name, string description = null)
Parameters
Returns
- ITerm
Newly added term
AddBatchAsync(Batch, string, string)
Adds a new term
Task<ITerm> AddBatchAsync(Batch batch, string name, string description = null)
Parameters
batchBatchBatch to use
namestringName of the term
descriptionstringOptional description of the term
Returns
AddBatchAsync(string, string)
Adds a new term
Task<ITerm> AddBatchAsync(string name, string description = null)
Parameters
Returns
GetById(string)
Loads a term by id
ITerm GetById(string id)
Parameters
idstringId of the term to load
Returns
- ITerm
Found term if any, null otherwise
GetByIdAsync(string)
Loads a term by id
Task<ITerm> GetByIdAsync(string id)
Parameters
idstringId of the term to load