Table of Contents

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

name string

Name of the term set

description string

Optional description of the term set

Returns

ITermSet

Newly added term set

AddAsync(string, string)

Adds a new term set

Task<ITermSet> AddAsync(string name, string description = null)

Parameters

name string

Name of the term set

description string

Optional description of the term set

Returns

Task<ITermSet>

Newly added term set

AddBatch(Batch, string, string)

Adds a new term set

ITermSet AddBatch(Batch batch, string name, string description = null)

Parameters

batch Batch

Batch to use

name string

Name of the term set

description string

Optional 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

name string

Name of the term set

description string

Optional description of the term set

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

batch Batch

Batch to use

name string

Name of the term set

description string

Optional description of the term set

Returns

Task<ITermSet>

Newly added term set

AddBatchAsync(string, string)

Adds a new term set

Task<ITermSet> AddBatchAsync(string name, string description = null)

Parameters

name string

Name of the term set

description string

Optional description of the term set

Returns

Task<ITermSet>

Newly added term set

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

id string

The id to search for

selectors Expression<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

id string

The id to search for

selectors Expression<Func<ITermSet, object>>[]

The expressions declaring the fields to select

Returns

Task<ITermSet>

The resulting term set instance, if any