SP.Taxonomy.TermSet object (sp.taxonomy)

Represents a hierarchical or flat set of Term objects known as a "TermSet".

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var object = new SP.Taxonomy.TermSet()

Members

The TermSet object has the following members.

Constructor

The TermSet object has the following constructor.

Constructor

Description

TermSet

Initializes a new instance of a SP.Taxonomy.TermSet object (sp.taxonomy) object.

Methods

The TermSet object has the following methods.

Method

Description

addStakeholder

Adds a stakeholder to the TermSet object.

copy

Creates a copy of the TermSet object under the current parent TermGroup object.

deleteStakeholder

Deletes a stakeholder from the TermSet object.

exportObject

getAllTerms

Returns a collection containing a flat list of all Term objects in the TermSet object.

getChanges

Specifies a collection of ChangedItem objects that represent changes to the current TermSet since a specified time.

getTerm

Gets a Term from the current TermSet based on its ID.

getTerms

Gets a collection of all Term objects from the current TermSet object based on the label criteria provided.

getTermsWithCustomProperty

Gets a collection of all Term objects from the current TermSet object that have a custom property matching the criteria provided.

move

Moves the current TermSet into a different TermGroup object.

Properties

The TermSet object has the following properties.

Property

Description

contact

Gets and sets the contact for the current TermSet object.

description

Gets and sets the description for the current TermSet object.

group

Gets the parent TermGroup object of the current TermSet object.

isOpenForTermCreation

Indicates whether the TermSet can be updated by all users, or alternatively just by the specified contributors for the TermGroup object.

stakeholders

Gets the collection of stakeholders for the current TermSet object.