ExtensionMethods::IsAncestorOf<TElementType> Method (TElementType, TElementType, Func<TElementType, TElementType>^)

 

Microsoft internal use only.

Namespace:   Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)

public:
generic<typename TElementType>
where TElementType : ref class
[ExtensionAttribute]
static bool IsAncestorOf(
	TElementType element,
	TElementType other,
	Func<TElementType, TElementType>^ parentEvaluator
)

Parameters

element
Type: TElementType

The ancestor element.

other
Type: TElementType

The descendent element.

parentEvaluator
Type: System::Func<TElementTypeTElementType>^

The function used to determine an element's parent.

Return Value

Type: System::Boolean

Type Parameters

TElementType
Return to top
Show: