ExtensionMethods.FindAncestorOrSelf<TElementType> 方法 (TElementType, Func, Func)
命名空间: Microsoft.VisualStudio.PlatformUI
程序集: Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)
语法
声明
<ExtensionAttribute> _
Public Shared Function FindAncestorOrSelf(Of TElementType) ( _
obj As TElementType, _
parentEvaluator As Func<(Of <<'(UMP, UMP>)>>), _
ancestorSelector As Func<(Of <<'(UMP, Boolean>)>>) _
) As Object
public static Object FindAncestorOrSelf<TElementType>(
this TElementType obj,
Func<(Of <<'(UMP, UMP>)>>) parentEvaluator,
Func<(Of <<'(UMP, Boolean>)>>) ancestorSelector
)
类型参数
- TElementType
参数
- obj
类型:TElementType
- parentEvaluator
类型:System.Func<UMP, UMP>
- ancestorSelector
类型:System.Func<UMP, Boolean>
返回值
使用说明
在 Visual Basic 和 C# 中,可以在 TElementType 类型的任何对象上将此方法作为实例方法来调用。当使用实例方法语法调用此方法时,请省略第一个参数。有关更多信息,请参见扩展方法 (Visual Basic)或扩展方法(C# 编程指南)。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。