TermStore.GetTermSet method

This method retrieves a TermSet object based on a TermSet ID.

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

public TermSet GetTermSet(
	Guid termSetId


Type: System.Guid

The ID of the TermSet to return

Return value

Type: Microsoft.SharePoint.Taxonomy.TermSet
A TermSet object with a matching ID, or a null reference (Nothing in Visual Basic) if it cannot be found.

A a null reference (Nothing in Visual Basic) will be returned if the Term cannot be found or if the user does not have sufficient permissions to access it. This method searches across all Group objects in the TermStore.