Interface ITerm
- Namespace
- PnP.Core.Model.SharePoint
- Assembly
- PnP.Core.dll
Represents a term used in a term store. A term can be used to represent an object which can then be used as a metadata to tag conent. Multiple terms can be organized in a hierarchical manner within a set.
public interface ITerm : IDataModel<ITerm>, IDataModelParent, IDataModelWithContext, ISupportModules<ITerm>, IDataModelGet<ITerm>, IDataModelLoad<ITerm>, IDataModelUpdate, IDataModelDelete, IQueryableDataModel
- Inherited Members
- Extension Methods
Properties
CreatedDateTime
Date and time of term set creation. Read-only.
DateTimeOffset CreatedDateTime { get; }
Property Value
Descriptions
Name of the term set for each language.
ITermLocalizedDescriptionCollection Descriptions { get; }
Property Value
Id
The Unique ID of the term.
string Id { get; }
Property Value
Labels
Name of the term set for each language.
ITermLocalizedLabelCollection Labels { get; }
Property Value
LastModifiedDateTime
Last date and time of term modification. Read-only.
DateTimeOffset LastModifiedDateTime { get; }
Property Value
Properties
Properties on this term set
ITermPropertyCollection Properties { get; }
Property Value
Relations
Collection of terms relations
ITermRelationCollection Relations { get; }
Property Value
Set
The term set of this term
[SuppressMessage("Naming", "CA1716:Identifiers should not match keywords", Justification = "<Pending>")]
ITermSet Set { get; }
Property Value
Terms
Collection of child terms of this term
Implements IQueryable<T>.
See Requesting model collections
and IQueryable performance considerations to learn more.
ITermCollection Terms { get; }
Property Value
Methods
AddLabelAndDescription(string, string, bool, string)
Adds a term label and optional description for a given language. Call update to persist this change.
void AddLabelAndDescription(string label, string languageTag, bool isDefault = false, string description = null)
Parameters
labelstringLabel for the term
languageTagstringLanguage tag for the label and description
isDefaultboolWill this be the default label?
descriptionstringOptional description to set
AddProperty(string, string)
Adds a property to the term's property collection. Call update to persist this change.
void AddProperty(string key, string value)