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

Definition

Bestimmt, ob ein-Element ein Vorgänger eines anderen Elements ist.

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

Typparameter

TElementType

Parameter

element
TElementType

Das Vorgängerelement.

other
TElementType

Das untergeordnete Element.

parentEvaluator
Func<TElementType,TElementType>

Die Funktion, die verwendet wird, um das übergeordnete Element eines Elements zu bestimmen.

Gibt zurück

Boolean

True, wenn das Element ein Vorgänger eines anderen ist, andernfalls false.

Gilt für