Table of Contents

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

name string

Name of the term

description string

Optional description of the term

Returns

ITerm

Newly added term

AddAsync(string, string)

Adds a new term

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

Parameters

name string

Name of the term

description string

Optional description of the term

Returns

Task<ITerm>

Newly added term

AddBatch(Batch, string, string)

Adds a new term

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

Parameters

batch Batch

Batch to use

name string

Name of the term

description string

Optional description of the term

Returns

ITerm

Newly added term

AddBatch(string, string)

Adds a new term

ITerm AddBatch(string name, string description = null)

Parameters

name string

Name of the term

description string

Optional description of the term

Returns

ITerm

Newly added term

AddBatchAsync(Batch, string, string)

Adds a new term

Task<ITerm> AddBatchAsync(Batch batch, string name, string description = null)

Parameters

batch Batch

Batch to use

name string

Name of the term

description string

Optional description of the term

Returns

Task<ITerm>

Newly added term

AddBatchAsync(string, string)

Adds a new term

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

Parameters

name string

Name of the term

description string

Optional description of the term

Returns

Task<ITerm>

Newly added term

GetById(string)

Loads a term by id

ITerm GetById(string id)

Parameters

id string

Id 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

id string

Id of the term to load

Returns

Task<ITerm>

Found term if any, null otherwise