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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。