GraphLink.FindRelatedLinks 方法
查找匹配 acceptLink 谓词的链接。 执行广泛找到这些元素沿匹配 traverseLink 谓词,在源或目标方向的链接首先搜索指定由 searchDirection。
命名空间: Microsoft.VisualStudio.GraphModel
程序集: Microsoft.VisualStudio.GraphModel(在 Microsoft.VisualStudio.GraphModel.dll 中)
语法
声明
Public Function FindRelatedLinks ( _
searchDirection As GraphSearchDirection, _
traverseLink As Predicate(Of GraphLink), _
acceptLink As Predicate(Of GraphLink) _
) As IEnumerable(Of GraphLink)
public IEnumerable<GraphLink> FindRelatedLinks(
GraphSearchDirection searchDirection,
Predicate<GraphLink> traverseLink,
Predicate<GraphLink> acceptLink
)
public:
IEnumerable<GraphLink^>^ FindRelatedLinks(
GraphSearchDirection searchDirection,
Predicate<GraphLink^>^ traverseLink,
Predicate<GraphLink^>^ acceptLink
)
member FindRelatedLinks :
searchDirection:GraphSearchDirection *
traverseLink:Predicate<GraphLink> *
acceptLink:Predicate<GraphLink> -> IEnumerable<GraphLink>
public function FindRelatedLinks(
searchDirection : GraphSearchDirection,
traverseLink : Predicate<GraphLink>,
acceptLink : Predicate<GraphLink>
) : IEnumerable<GraphLink>
参数
- searchDirection
类型:Microsoft.VisualStudio.GraphModel.GraphSearchDirection
- traverseLink
类型:Predicate<GraphLink>
- acceptLink
类型:Predicate<GraphLink>
返回值
类型:IEnumerable<GraphLink>
遍历接受的链接,包括原始链接。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。