Table of Contents

Interface ITermStore

Namespace
PnP.Core.Model.SharePoint
Assembly
PnP.Core.dll

Microsoft 365 Term store

public interface ITermStore : IDataModel<ITermStore>, IDataModelParent, IDataModelWithContext, ISupportModules<ITermStore>, IDataModelGet<ITermStore>, IDataModelLoad<ITermStore>, IDataModelUpdate
Inherited Members
Extension Methods

Properties

DefaultLanguage

Default language of the termstore.

string DefaultLanguage { get; set; }

Property Value

string

Groups

Collection of term groups in this term store Implements IQueryable<T>.
See Requesting model collections and IQueryable performance considerations to learn more.

ITermGroupCollection Groups { get; }

Property Value

ITermGroupCollection

Id

The Unique ID of the Term Store

string Id { get; }

Property Value

string

Languages

List of languages for the term store.

List<string> Languages { get; }

Property Value

List<string>

Methods

GetTermById(string, string, params Expression<Func<ITerm, object>>[])

Gets a term from this termstore via it's id and it's termset id

ITerm GetTermById(string termSetId, string termId, params Expression<Func<ITerm, object>>[] selectors)

Parameters

termSetId string

Termset id of the termset containing the term

termId string

Term id of the term to retrieve

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

Properties to load for the term

Returns

ITerm

The loaded term

GetTermByIdAsync(string, string, params Expression<Func<ITerm, object>>[])

Gets a term from this termstore via it's id and it's termset id

Task<ITerm> GetTermByIdAsync(string termSetId, string termId, params Expression<Func<ITerm, object>>[] selectors)

Parameters

termSetId string

Termset id of the termset containing the term

termId string

Term id of the term to retrieve

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

Properties to load for the term

Returns

Task<ITerm>

The loaded term

GetTermByIdBatch(Batch, string, string, params Expression<Func<ITerm, object>>[])

Gets a term from this termstore via it's id and it's termset id

ITerm GetTermByIdBatch(Batch batch, string termSetId, string termId, params Expression<Func<ITerm, object>>[] selectors)

Parameters

batch Batch

Batch to add this reques to

termSetId string

Termset id of the termset containing the term

termId string

Term id of the term to retrieve

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

Properties to load for the term

Returns

ITerm

The loaded term

GetTermByIdBatch(string, string, params Expression<Func<ITerm, object>>[])

Gets a term from this termstore via it's id and it's termset id

ITerm GetTermByIdBatch(string termSetId, string termId, params Expression<Func<ITerm, object>>[] selectors)

Parameters

termSetId string

Termset id of the termset containing the term

termId string

Term id of the term to retrieve

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

Properties to load for the term

Returns

ITerm

The loaded term

GetTermByIdBatchAsync(Batch, string, string, params Expression<Func<ITerm, object>>[])

Gets a term from this termstore via it's id and it's termset id

Task<ITerm> GetTermByIdBatchAsync(Batch batch, string termSetId, string termId, params Expression<Func<ITerm, object>>[] selectors)

Parameters

batch Batch

Batch to add this reques to

termSetId string

Termset id of the termset containing the term

termId string

Term id of the term to retrieve

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

Properties to load for the term

Returns

Task<ITerm>

The loaded term

GetTermByIdBatchAsync(string, string, params Expression<Func<ITerm, object>>[])

Gets a term from this termstore via it's id and it's termset id

Task<ITerm> GetTermByIdBatchAsync(string termSetId, string termId, params Expression<Func<ITerm, object>>[] selectors)

Parameters

termSetId string

Termset id of the termset containing the term

termId string

Term id of the term to retrieve

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

Properties to load for the term

Returns

Task<ITerm>

The loaded term

GetTermSetById(string, params Expression<Func<ITermSet, object>>[])

Gets a termset from this termstore via it's id

ITermSet GetTermSetById(string id, params Expression<Func<ITermSet, object>>[] selectors)

Parameters

id string

Termset id to retrieve

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

Properties to load for the termset

Returns

ITermSet

The loaded termset

GetTermSetByIdAsync(string, params Expression<Func<ITermSet, object>>[])

Gets a termset from this termstore via it's id

Task<ITermSet> GetTermSetByIdAsync(string id, params Expression<Func<ITermSet, object>>[] selectors)

Parameters

id string

Termset id to retrieve

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

Properties to load for the termset

Returns

Task<ITermSet>

The loaded termset

GetTermSetByIdBatch(Batch, string, params Expression<Func<ITermSet, object>>[])

Gets a termset from this termstore via it's id

ITermSet GetTermSetByIdBatch(Batch batch, string id, params Expression<Func<ITermSet, object>>[] selectors)

Parameters

batch Batch

Batch to add this reques to

id string

Termset id to retrieve

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

Properties to load for the termset

Returns

ITermSet

The loaded termset

GetTermSetByIdBatch(string, params Expression<Func<ITermSet, object>>[])

Gets a termset from this termstore via it's id

ITermSet GetTermSetByIdBatch(string id, params Expression<Func<ITermSet, object>>[] selectors)

Parameters

id string

Termset id to retrieve

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

Properties to load for the termset

Returns

ITermSet

The loaded termset

GetTermSetByIdBatchAsync(Batch, string, params Expression<Func<ITermSet, object>>[])

Gets a termset from this termstore via it's id

Task<ITermSet> GetTermSetByIdBatchAsync(Batch batch, string id, params Expression<Func<ITermSet, object>>[] selectors)

Parameters

batch Batch

Batch to add this reques to

id string

Termset id to retrieve

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

Properties to load for the termset

Returns

Task<ITermSet>

The loaded termset

GetTermSetByIdBatchAsync(string, params Expression<Func<ITermSet, object>>[])

Gets a termset from this termstore via it's id

Task<ITermSet> GetTermSetByIdBatchAsync(string id, params Expression<Func<ITermSet, object>>[] selectors)

Parameters

id string

Termset id to retrieve

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

Properties to load for the termset

Returns

Task<ITermSet>

The loaded termset