TermSet Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a hierarchical or flat set of Term objects known as a "TermSet".
public ref class TermSet sealed : Microsoft::SharePoint::Taxonomy::TermSetItem
[Microsoft.SharePoint.Client.ClientCallableType(ClientLibraryTargets=Microsoft.SharePoint.Client.ClientLibraryTargets.NonRESTful, FactoryType=typeof(Microsoft.SharePoint.Taxonomy.Internal.TaxonomyClientObjectFactory), ObjectIdentityPropertyName="CanonicalId", ServerTypeId="E26FEB13-2940-4db9-A52B-12B160113A80")]
public sealed class TermSet : Microsoft.SharePoint.Taxonomy.TermSetItem
type TermSet = class
inherit TermSetItem
Public NotInheritable Class TermSet
Inherits TermSetItem
- Inheritance
- Attributes
-
ClientCallableTypeAttribute
Remarks
The TermSet object contains one or more child Term objects, and the root level of the hierarchy can be accessed through the Terms property. Get Child Term objects with search methods such as GetTerms(String, Boolean).Permissions for editing the TermSet object and its child Term objects are defined on the parent Group object of the current TermSet.
The TermSet object also provides properties to get and set values of the TermSet, such as name and description and a way to delete TermSet objects. Additionally, the TermSet object provides methods for checking changes on the TermSet.
The TermSet object derives from the TermSetItem base object, which provides additional behavior such as the ability to create child Term objects.
Properties
Contact |
Gets and sets the contact for the current TermSet object. |
CreatedDate |
Gets the DateTime at which this item was created. (Inherited from TaxonomyItem) |
CustomProperties |
Gets the collection of effective CustomProperty instances for a Term or TermSet. (Inherited from TermSetItem) |
CustomSortOrder |
Gets or sets the custom sort order of the current Term object. |
Description |
Gets and sets the description for the current TermSet object. |
Group | |
Id |
Gets the Id of the current T:Microsoft.SharePoint.Taxonomy.TaxonomyItem. (Inherited from TaxonomyItem) |
IsAvailableForTagging |
Gets or sets whether the TermSet object should appear in the tagging user interface. |
IsOpenForTermCreation |
Indicates whether the TermSet can be updated by all users, or alternatively just by the specified constributors for the Group object. |
LastModifiedDate |
Gets the DateTime at which this item was most recently updated. (Inherited from TaxonomyItem) |
Name |
Gets and sets the name for the current TermSet object. |
Owner |
Gets or sets the user who is responsible for the current TermSet. |
Stakeholders |
Gets the collection of stakeholders for the current TermSet object. |
Terms |
Gets a collection of child Term objects at the root of the TermSet object. |
TermStore |
Gets the TermStore object from which the current Microsoft.SharePoint.TaxonomyItem was retrieved. (Inherited from TaxonomyItem) |
Methods
AddStakeholder(String) |
Adds a stakeholder to the TermSet object. |
Copy() |
Creates a copy of the TermSet object under the current parent Group object. |
CreateTerm(String, Int32) |
Creates a new Term below this TaxonomyItem instance.The name is the default Label for the LCID specified. (Inherited from TermSetItem) |
CreateTerm(String, Int32, Guid) |
Creates a new Term object below this Microsoft.SharePoint.TaxonomyItem object.The name is the default Label for the specified LCID. (Inherited from TermSetItem) |
Delete() | |
DeleteAllCustomProperties() |
Deletes all custom properties from the TermSet. |
DeleteCustomProperty(String) |
Deletes a custom property from the TermSet object. |
DeleteStakeholder(String) |
Deletes a stakeholder from the TermSet object. |
DoesUserHavePermissions(TaxonomyRights) |
Verifies whether the current user has the permissions specified. (Inherited from TermSetItem) |
Export() |
This method is not implemented. |
GetAllTerms() |
Returns a collection containing a flat list of all Term objects in the TermSet object. |
GetChanges(DateTime) |
Gets a collection of ChangedItem objects that represent changes to the current TermSet since a specified time. |
GetChanges(DateTime, ChangedItemType) |
Gets a collection of ChangedItem objects that represent changes to the current TermSet object since a specified time, restricted by item type. |
GetChanges(DateTime, ChangedItemType, ChangedOperationType) |
Gets a collection of ChangedItem objects that represent changes to the current TermSet since a specified time, restricted by item type and operation type. |
GetTerm(Guid) | |
GetTerms(Int32) |
Gets a paged collection containing the child Term objects of this Microsoft.SharePoint.TermSetItem object (Inherited from TermSetItem) |
GetTerms(String, Boolean) |
Gets a collection of all Term objects from the current TermSet that have a Label object that matches the string provided in any LCID. |
GetTerms(String, Boolean, StringMatchOption, Int32, Boolean) |
Gets a collection of all Term objects from the current TermSet object with a Label matchingthe string provided in any LCID, with an option to only search default labels. |
GetTerms(String, Int32, Boolean) |
Gets a collection of all Term objects from the current TermSet object with a Label in the specified LCID matching the string provided. |
GetTerms(String, Int32, Boolean, StringMatchOption, Int32, Boolean) |
Gets a collection of all Term objects from the current TermSet with a Label in the provided LCID matching the string provided, with an option to only search default labels. |
GetTermsWithCustomProperty(String, Boolean) |
Gets a collection of Term objects with a property that has the provided property name. |
GetTermsWithCustomProperty(String, Int32, Boolean) |
Gets a collection of Term objects with a property with the provided property name. |
GetTermsWithCustomProperty(String, String, Boolean) |
Gets a collection of Term objects with a custom property with the provided property name and the provided property value. |
GetTermsWithCustomProperty(String, String, StringMatchOption, Boolean) |
Gets a collection of Term objects with a custom property starting with or matching the provided property name and the provided property value. |
GetTermsWithCustomProperty(String, String, StringMatchOption, Int32, Boolean) |
Gets a collection of Term objects with a custom property starting with or matching the provided property name and the provided property value. |
Move(Group) | |
ReuseTerm(Term, Boolean) |
Creates a new reused Term object below this TaxonomyItem object based on a |
ReuseTermWithPinning(Term) |
Creates a new Term below a TaxonomyItem instance based on a |
SetCustomProperty(String, String) |
Adds a new custom property with the |
Applies to
Feedback
Submit and view feedback for