Interface ITerm
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.
Assembly: PnP.Core.dll
Syntax
public interface ITerm : IDataModel<ITerm>, IDataModelParent, IDataModelWithContext, ISupportModules<ITerm>, IDataModelGet<ITerm>, IDataModelLoad<ITerm>, IDataModelUpdate, IDataModelDelete, IQueryableDataModel
Properties
Date and time of term set creation. Read-only.
Declaration
DateTimeOffset CreatedDateTime { get; }
Property Value
Name of the term set for each language.
Declaration
ITermLocalizedDescriptionCollection Descriptions { get; }
Property Value
The Unique ID of the term.
Declaration
Property Value
Name of the term set for each language.
Declaration
ITermLocalizedLabelCollection Labels { get; }
Property Value
Last date and time of term modification. Read-only.
Declaration
DateTimeOffset LastModifiedDateTime { get; }
Property Value
Properties on this term set
Declaration
ITermPropertyCollection Properties { get; }
Property Value
Collection of terms relations
Declaration
ITermRelationCollection Relations { get; }
Property Value
The term set of this term
Declaration
Property Value
Declaration
ITermCollection Terms { get; }
Property Value
Methods
Adds a term label and optional description for a given language. Call update to persist this change.
Declaration
void AddLabelAndDescription(string label, string languageTag, bool isDefault = false, string description = null)
Parameters
System.String
label
Label for the term
|
System.String
languageTag
Language tag for the label and description
|
System.Boolean
isDefault
Will this be the default label?
|
System.String
description
Optional description to set
|
Adds a property to the term's property collection. Call update to persist this change.
Declaration
void AddProperty(string key, string value)
Parameters
System.String
key
Property key
|
System.String
value
Property value
|
Extension Methods