Share via


Term.GetIsDescendantOf method

Indicates whether the current Term object is a descendent Term of the specified Term.

Namespace:  Microsoft.SharePoint.Taxonomy
Assembly:  Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)

Syntax

'Declaration
Public Function GetIsDescendantOf ( _
    ancestorTerm As Term _
) As Boolean
'Usage
Dim instance As Term
Dim ancestorTerm As Term
Dim returnValue As Boolean

returnValue = instance.GetIsDescendantOf(ancestorTerm)
public bool GetIsDescendantOf(
    Term ancestorTerm
)

Parameters

Return value

Type: System.Boolean
true if the Term is a descendent of the specified Term; otherwise, false

Exceptions

Exception Condition
ArgumentNullException

The Term to check is a null reference (Nothing in Visual Basic).

See also

Reference

Term class

Term members

Microsoft.SharePoint.Taxonomy namespace