Interface ITermSetCollection
Assembly: PnP.Core.dll
Syntax
public interface ITermSetCollection : IDataModelCollection<ITermSet>, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionDeleteByStringId, ISupportModules<ITermSetCollection>
Methods
Declaration
ITermSet Add(string name, string description = null)
Parameters
System.String
name
Name of the term set
|
System.String
description
Optional description of the term set
|
Returns
Declaration
Task<ITermSet> AddAsync(string name, string description = null)
Parameters
System.String
name
Name of the term set
|
System.String
description
Optional description of the term set
|
Returns
Declaration
ITermSet AddBatch(Batch batch, string name, string description = null)
Parameters
Batch
batch
Batch to use
|
System.String
name
Name of the term set
|
System.String
description
Optional description of the term set
|
Returns
Declaration
ITermSet AddBatch(string name, string description = null)
Parameters
System.String
name
Name of the term set
|
System.String
description
Optional description of the term set
|
Returns
Declaration
Task<ITermSet> AddBatchAsync(Batch batch, string name, string description = null)
Parameters
Batch
batch
Batch to use
|
System.String
name
Name of the term set
|
System.String
description
Optional description of the term set
|
Returns
Declaration
Task<ITermSet> AddBatchAsync(string name, string description = null)
Parameters
System.String
name
Name of the term set
|
System.String
description
Optional description of the term set
|
Returns
Extension method to select a term set by id
Declaration
ITermSet GetById(string id, params Expression<Func<ITermSet, object>>[] selectors)
Parameters
System.String
id
The id to search for
|
Expression<Func<ITermSet, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
ITermSet
The resulting term set instance, if any
|
Extension method to select a term set by id
Declaration
Task<ITermSet> GetByIdAsync(string id, params Expression<Func<ITermSet, object>>[] selectors)
Parameters
System.String
id
The id to search for
|
Expression<Func<ITermSet, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
Task<ITermSet>
The resulting term set instance, if any
|
Extension Methods