TermStore.GetTermSet(Guid) Method

Definition

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

public:
 Microsoft::SharePoint::Taxonomy::TermSet ^ GetTermSet(Guid termSetId);
[Microsoft.SharePoint.Client.ClientCallableMethod(CacheReturnValue=true, ClientLibraryTargets=Microsoft.SharePoint.Client.ClientLibraryTargets.NonRESTful, ReturnObjectIdentity=true)]
public Microsoft.SharePoint.Taxonomy.TermSet GetTermSet (Guid termSetId);
member this.GetTermSet : Guid -> Microsoft.SharePoint.Taxonomy.TermSet
Public Function GetTermSet (termSetId As Guid) As TermSet

Parameters

termSetId
Guid

The ID of the TermSet to return

Returns

TermSet

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

Attributes
ClientCallableMethodAttribute

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.

Applies to