TaxonomySession.GetTerm method
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.
Namespace: Microsoft.SharePoint.Client.Taxonomy
Assembly: Microsoft.SharePoint.Client.Taxonomy (in Microsoft.SharePoint.Client.Taxonomy.dll)
Syntax
'Declaration
Public Function GetTerm ( _
termId As Guid _
) As Term
'Usage
Dim instance As TaxonomySession
Dim termId As Guid
Dim returnValue As Term
returnValue = instance.GetTerm(termId)
public Term GetTerm(
Guid termId
)
Parameters
termId
Type: System.GuidThe Term ID of the Term to get.
Return value
Type: Microsoft.SharePoint.Client.Taxonomy.Term
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.