ExtensionMethods.IsAncestorOf(TElementType, TElementType, Func<TElementType,TElementType>) ExtensionMethods.IsAncestorOf(TElementType, TElementType, Func<TElementType,TElementType>) ExtensionMethods.IsAncestorOf(TElementType, TElementType, Func<TElementType,TElementType>) ExtensionMethods.IsAncestorOf(TElementType, TElementType, Func<TElementType,TElementType>) Method

Definition

Microsoft internal use only.

public:
generic <typename TElementType>
 where TElementType : class[System::Runtime::CompilerServices::Extension]
 static bool IsAncestorOf(TElementType element, TElementType other, Func<TElementType, TElementType> ^ parentEvaluator);
public static bool IsAncestorOf<TElementType> (this TElementType element, TElementType other, Func<TElementType,TElementType> parentEvaluator) where TElementType : class;
static member IsAncestorOf : 'ElementType * 'ElementType * Func<'ElementType, 'ElementType (requires 'ElementType : null and 'ElementType : null)> -> bool (requires 'ElementType : null)
<Extension()>
Public Function IsAncestorOf(Of TElementType As Class) (element As TElementType, other As TElementType, parentEvaluator As Func(Of TElementType, TElementType)) As Boolean
Type Parameters
TElementType
Parameters
element

The ancestor element.

other

The descendent element.

parentEvaluator
Func<TElementType,TElementType>

The function used to determine an element's parent.

Returns

Applies to