ExtensionMethods::FindAncestor<TElementType> Method (TElementType, Func<TElementType, TElementType>^, Func<TElementType, Boolean>^)

 

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

public:
generic<typename TElementType>
[ExtensionAttribute]
static Object^ FindAncestor(
	TElementType obj,
	Func<TElementType, TElementType>^ parentEvaluator,
	Func<TElementType, bool>^ ancestorSelector
)

Parameters

obj
Type: TElementType

parentEvaluator
Type: System::Func<TElementTypeTElementType>^

ancestorSelector
Type: System::Func<TElementTypeBoolean>^

Return Value

Type: System::Object^

Type Parameters

TElementType

Return to top
Show: