TaxonomySession.GetTerm(Guid) TaxonomySession.GetTerm(Guid) TaxonomySession.GetTerm(Guid) Method

Definition

Gets a Term object that is based on Term IDs. If the current Term belongs to multiple TermSet objects, it will arbitrarily return the Term from one of the TermSet objects.

public:
 Microsoft::SharePoint::Taxonomy::Term ^ GetTerm(Guid termId);
[Microsoft.SharePoint.Client.ClientCallableMethod(CacheReturnValue=true, ClientLibraryTargets=Microsoft.SharePoint.Client.ClientLibraryTargets.NonRESTful, ReturnObjectIdentity=true)]
public Microsoft.SharePoint.Taxonomy.Term GetTerm (Guid termId);
Public Function GetTerm (termId As Guid) As Term
Parameters
termId
Guid Guid Guid

The Term ID of the Term to get.

Returns

A Term that is based on Term IDs.

Remarks

If the current Term is part of multiple TermSet objects, it will arbitrarily return the Term from one of the TermSet objects. A a null reference (Nothing in Visual Basic) is returned if the Term cannot be found or if the user does not have sufficient permissions to access it.

Applies to