Interface ITermSet
Represents the set used in a term store. The set represents a unit which contains a collection of hierarchical terms. A group can contain multiple sets.
Assembly: PnP.Core.dll
Syntax
public interface ITermSet : IDataModel<ITermSet>, IDataModelParent, IDataModelWithContext, ISupportModules<ITermSet>, IDataModelGet<ITermSet>, IDataModelLoad<ITermSet>, IDataModelUpdate, IDataModelDelete, IQueryableDataModel
Properties
Date and time of term set creation. Read-only.
Declaration
DateTimeOffset CreatedDateTime { get; }
Property Value
Description giving details on the term set.
Declaration
string Description { get; set; }
Property Value
The parent group for this termset
Declaration
ITermGroup Group { get; }
Property Value
The Unique ID of the term set.
Declaration
Property Value
Name of the term set for each language.
Declaration
ITermSetLocalizedNameCollection LocalizedNames { get; }
Property Value
Properties on this term set
Declaration
ITermSetPropertyCollection Properties { get; }
Property Value
Collection of terms relations
Declaration
ITermRelationCollection Relations { get; }
Property Value
Declaration
ITermCollection Terms { get; }
Property Value
Methods
Adds a new localized termset name. Call update to persist this change.
Declaration
void AddLocalizedName(string name, string languageTag)
Parameters
System.String
name
Termset label
|
System.String
languageTag
Language the label is in
|
Adds a property to the term set'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
|
Adds a property to the term set's property collection. Call update to persist this change.
Declaration
Task AddPropertyAsync(string key, string value)
Parameters
System.String
key
Property key
|
System.String
value
Property value
|
Returns
Gets all terms with this property.
Declaration
IList<ITerm> GetTermsByCustomProperty(string key, string value, bool trimUnavailable = false)
Parameters
System.String
key
Property key
|
System.String
value
Property value
|
System.Boolean
trimUnavailable
Trim unavailable terms
|
Returns
PnP.Core.Model.SharePoint.IList<ITerm>
|
Gets all terms with this property.
Declaration
Task<IList<ITerm>> GetTermsByCustomPropertyAsync(string key, string value, bool trimUnavailable = false)
Parameters
System.String
key
Property key
|
System.String
value
Property value
|
System.Boolean
trimUnavailable
Trim unavailable terms
|
Returns
Task<PnP.Core.Model.SharePoint.IList<ITerm>>
|
Extension Methods