Share via


Term.GetIsDescendantOf method

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

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

Syntax

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

returnValue = instance.GetIsDescendantOf(ancestorTerm)
public ClientResult<bool> GetIsDescendantOf(
    Term ancestorTerm
)

Parameters

Return value

Type: Microsoft.SharePoint.Client.ClientResult<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.Client.Taxonomy namespace