Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
UpdateUsedTermsOnSite method

TermStore.UpdateUsedTermsOnSite method

This method makes sure that the current TermStore object is aware of all child Term object that are used in the requested site collection.

Namespace:  Microsoft.SharePoint.Taxonomy
Assembly:  Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)

public void UpdateUsedTermsOnSite(
	SPSite site
)

Parameters

site
Type: Microsoft.SharePoint.SPSite

The site collection to check against for Term usage.

Generally there should be no need to explicitly call this method. However, if changes to terms are not being propogated to a specific site, calling UpdateUsedTermsOnSite(SPSite) and then calling ResyncHiddenList(SPSite) will update the site.

The TermStore tracks which Term objects are being used by the SPSite object for ResyncHiddenList(SPSite) to function correctly.

Show:
© 2015 Microsoft