ExtensionMethods.FindCommonAncestor<T> Method (T, T, Func)

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

‘선언
<ExtensionAttribute> _
Public Shared Function FindCommonAncestor(Of T As DependencyObject) ( _
    obj1 As T, _
    obj2 As T, _
    parentEvaluator As Func _
) As T
‘사용 방법
Dim obj1 As T
Dim obj2 As T
Dim parentEvaluator As Func
Dim returnValue As T

returnValue = obj1.FindCommonAncestor(obj2, _
    parentEvaluator)
public static T FindCommonAncestor<T>(
    this T obj1,
    T obj2,
    Func parentEvaluator
)
where T : DependencyObject
[ExtensionAttribute]
public:
generic<typename T>
where T : DependencyObject
static T FindCommonAncestor(
    T obj1, 
    T obj2, 
    Func^ parentEvaluator
)
static member FindCommonAncestor : 
        obj1:'T * 
        obj2:'T * 
        parentEvaluator:Func -> 'T  when 'T : DependencyObject
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

  • obj1
    Type: T
  • obj2
    Type: T

Return Value

Type: T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

ExtensionMethods Class

ExtensionMethods Members

FindCommonAncestor Overload

Microsoft.VisualStudio.PlatformUI Namespace