Compartilhar via


TermStore Members

Include Protected Members
Include Inherited Members

Represents a store that contains metadata within child Group objects, TermSet objects, and Term objects.

The TermStore type exposes the following members.

Properties

  Name Description
Public property ContentTypePublishingHub Gets the URI of the SPSite object used as the content type syndication hub, if it exists.
Public property DefaultLanguage Gets or sets the LCID of the default working language for the current TermStore object.
Public property Groups Gets a collection of the child Group objects of this TermStore object
Public property Id Gets the unique identifier of the TermStore object.
Public property IsOnline Indicates whether this term store is currently online (available).
Public property KeywordsTermSet Gets the TermSet object for this TermStore object.
Public property Languages Gets an integer collection of LCIDs.
Public property Name Gets the name of the current TermStore object.
Public property OrphanedTermsTermSet Gets the TermSet for this TermStore which contains the set of Orphaned Term objects.
Public property SystemGroup Gets the Group object for this TermStore object. which contains the set of System TermSets (Keywords and Orphaned Terms)
Public property TermStoreAdministrators Returns the SPAcl indicating the users who are Term Store Administrators for this TermStore object.
Public property WorkingLanguage Gets or sets the current working language of the TermStore object.

Top

Methods

  Name Description
Public method AddLanguage Adds a working language to the TermStore object.
Public method AddTermStoreAdministrator Adds a Term Store Administrator to the TermStore object.
Public method CommitAll Commits all updates to the database that have occurred since the last commit or rollback.
Public method CreateGroup Creates a new Group object in this TermStore.
Public method DeleteLanguage Deletes a working language from the TermStore object.
Public method DeleteTermStoreAdministrator Deletes a Term Store Administrator from the TermStore.
Public method DoesUserHavePermissions Verifies whether the current user has the permissions specified in the TermStore object.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method FlushCache Flushes the cache so that the most recent changes to the TermStore object will be viewed.
Public method GetChanges(DateTime) Gets a collection of ChangedItem objects that represent changes to this TermStore since a specified time.
Public method GetChanges(TimeSpan) Gets a collection of ChangedItem objects that represent changes to this TermStore object in a recent span of time.
Public method GetChanges(DateTime, ChangedItemType) Gets a collection of ChangedItem objects that represent changes to this TermStore since a specified time, restricted by item type.
Public method GetChanges(DateTime, ChangedItemType, ChangedOperationType) Gets a collection of ChangedItem objects that represent changes to this TermStore since a specified time, restricted by item type and operation type.
Public method GetGroup Gets a Group object based on the ID of the Group.
Public method GetHashCode (Inherited from Object.)
Public method GetImportManager Gets the ImportManager object for this TermStore object.
Public method GetSiteCollectionGroup Gets the group related to a specified site collection.
Public method GetTerm(Guid) Gets a Term based on its ID.
Public method GetTerm(Guid, Guid) Gets a Term object that is based on the ID of the TermSet object and the ID of the Term.
Public method GetTerms([]) Gets a collection of Term objects based on the ID of the Term.
Public method GetTerms(String, Boolean) Returns a collection of all Term objects from all TermSet objects in this TermStore that the current user has permissions to read with a Label object that matches the string provided in any LCID.
Public method GetTerms(String, Int32, Boolean) Returns a collection of all Term objects from all TermSet objects in this TermStore that the current user has permissions to read with a label in the provided LCID matching the string provided.
Public method GetTerms(String, Boolean, StringMatchOption, Int32, Boolean) Gets a collection of all Term objects from all TermSet objects in this TermStore that the current user has permissions to read with a Label object that matches the string provided in any LCID, with an option to only search default labels.
Public method GetTerms(String, Int32, Boolean, StringMatchOption, Int32, Boolean, Boolean, Boolean) Gets a collection of all Term objects from all TermSet objects in this TermStore object that the current user has permissions to read with a Label matching the string provided in any LCID, with an option to only search default labels, and options to trim certain terms.
Public method GetTermSet This method retrieves a TermSet object based on a TermSet ID.
Public method GetTermSets([]) Gets a collection of all TermSet objects in this TaxonomyTermStore object that the current user has permissions to read that contain terms with labels matching or starting with each of the specified strings.
Public method GetTermSets(String, Int32) This method retrieves a collection of all TermSets in this TermStore that the current user has permissions to read that have a matching TermSet name in the provided LCID
Public method GetTermSets([], Int32) This method retrieves a collection of all TermSets in this TermStore that the current user has permissions to read that contain terms with labels matching or starting with each of the specified strings for a specified LCID.
Public method GetTermsWithCustomProperty(String, Boolean) This method retrieves a collection of all Term objects, from all TermSets in this TermStore that the current user has permissions to read, that have a custom property with the provided property name.
Public method GetTermsWithCustomProperty(String, Int32, Boolean) This method retrieves a collection of all Term objects, from all TermSets in this TermStore that the current user has permissions to read, that have a custom property with the provided property name.
Public method GetTermsWithCustomProperty(String, String, Boolean) Gets a collection of all Term objects, from all TermSet objects in this TermStore object that the current user has permissions to read, that have a custom property with the specified property name and the specified property value.
Public method GetTermsWithCustomProperty(String, String, StringMatchOption, Boolean) Gets a collection of all Term objects, from all TermSet objects in this TermStore that the current user has permissions to read, that have a custom property starting with or matching the provided property name and the provided property value.
Public method GetTermsWithCustomProperty(String, String, StringMatchOption, Int32, Boolean) Gets a collection of all of the Term objects, from all T:Microsoft.SharePoint.TaxonomyTermSets in this TermStore that the current user has permissions to read, that have a custom property starting with or matching the provided property name and the provided property value.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ResyncHiddenList This method is used to update the term store with the currently used terms on a specified site.
Public method RollbackAll Discards all updates that have occurred since the last commit or rollback.
Public method ToString (Inherited from Object.)
Public method UpdateUsedTermsOnSite This method makes sure that the current TermStore object is aware of all child Term object that are used in the requested site collection.

Top

See Also

Reference

TermStore Class

Microsoft.SharePoint.Taxonomy Namespace