ExtensionMethods.FindCommonAncestor<T> 方法 (T, T, Func)

仅由 Microsoft 内部使用。

命名空间:  Microsoft.VisualStudio.PlatformUI
程序集:  Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)

语法

声明
<ExtensionAttribute> _
Public Shared Function FindCommonAncestor(Of T As DependencyObject) ( _
    obj1 As T, _
    obj2 As T, _
    parentEvaluator As Func<(Of <<'(UMP, UMP>)>>) _
) As T
public static T FindCommonAncestor<T>(
    this T obj1,
    T obj2,
    Func<(Of <<'(UMP, UMP>)>>) parentEvaluator
)
where T : DependencyObject

类型参数

  • T

参数

  • obj1
    类型:T
    第一个对象。
  • obj2
    类型:T
    第二个对象。
  • parentEvaluator
    类型:System.Func<UMP, UMP>
    使用的方法来确定元素的父级。

返回值

类型:T

使用说明

在 Visual Basic 和 C# 中,可以在 T 类型的任何对象上将此方法作为实例方法来调用。当使用实例方法语法调用此方法时,请省略第一个参数。有关更多信息,请参见扩展方法 (Visual Basic)扩展方法(C# 编程指南)

.NET Framework 安全性

请参见

参考

ExtensionMethods 类

FindCommonAncestor 重载

Microsoft.VisualStudio.PlatformUI 命名空间