TaxonomySession.GetTerm Method

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

Namespace:  Microsoft.SharePoint.Taxonomy
Assembly:  Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.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.Guid

    The Term.Id of the Term to get

Return Value

Type: Microsoft.SharePoint.Taxonomy.Term
A Term that is based on Term.Id.

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) will be returned if the Term cannot be found or if the user does not have sufficient permissions to access it.

See Also

Reference

TaxonomySession Class

TaxonomySession Members

Microsoft.SharePoint.Taxonomy Namespace