Table of Contents

Interface ITermRelation

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

Represents the relationship between terms in a term store.Currently two types of relationships are supported: pin and reuse.

In a pin relationship, a term can be pinned under a different term in a different term set.In a pinned relationship, new children to the term can only be added in the term set in which the term was created.Any change in the hierarchy under the term is reflected across the sets in which the term was pinned.

The reuse relationship is similar to the pinned relationship except that changes to the reused term can be made from any hierarchy in which the term is reused.Also, a change in hierarchy made to the reused term does not get reflected in the other term sets in which the term is reused.

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

Properties

FromTerm

The from term of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the set.

ITerm FromTerm { get; }

Property Value

ITerm

Id

The Unique ID of the term relation.

string Id { get; }

Property Value

string

Relationship

The type of relation. Possible values are: pin, reuse.

TermRelationType Relationship { get; set; }

Property Value

TermRelationType

Set

The set in which the relation is relevant.

[SuppressMessage("Naming", "CA1716:Identifiers should not match keywords", Justification = "<Pending>")]
ITermSet Set { get; }

Property Value

ITermSet

ToTerm

The to term of the relation. The term to which the realtionship is defined.

ITerm ToTerm { get; }

Property Value

ITerm