Share via


TaxonomySession.UpdateCache method

Forces the taxonomy cache to communicate with the Managed Metadata Service to check for changes to any taxonomy objects.

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

Syntax

'Declaration
Public Sub UpdateCache
'Usage
Dim instance As TaxonomySession

instance.UpdateCache()
public void UpdateCache()

Remarks

A background thread already performs these checks at periodic intervals, so calling UpdateCache() is normally unnecessary and may slow server performance. However, it is sometimes useful immediately before a change (to reduce the likelihood of save conflict errors) or immediately after a change (if that change may have been performed via a different web front end).

The UpdateCache method updates the cache for each TermStore object.

See also

Reference

TaxonomySession class

TaxonomySession members

Microsoft.SharePoint.Client.Taxonomy namespace