Compartilhar via


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)

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.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.Taxonomy Namespace

Id