Share via


TermStore.GetTermSet method

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

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

Syntax

'Declaration
Public Function GetTermSet ( _
    termSetId As Guid _
) As TermSet
'Usage
Dim instance As TermStore
Dim termSetId As Guid
Dim returnValue As TermSet

returnValue = instance.GetTermSet(termSetId)
public TermSet GetTermSet(
    Guid termSetId
)

Parameters

  • termSetId
    Type: System.Guid

    The ID of the TermSet to return

Return value

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

Remarks

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.

See also

Reference

TermStore class

TermStore members

Microsoft.SharePoint.Client.Taxonomy namespace