Partilhar via


Método GraphLink.FindRelatedLinks

Localiza os links que correspondem ao predicado de acceptLink.São encontrados fazendo uma largura pesquisam primeiro ao longo de links que correspondem ao predicado de traverseLink, em direção de origem ou de destino designado pelo searchDirection.

Namespace:  Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (em Microsoft.VisualStudio.GraphModel.dll)

Sintaxe

'Declaração
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>

Parâmetros

Valor de retorno

Tipo: System.Collections.Generic.IEnumerable<GraphLink>
Links aceitos pelo percorrimento, incluindo o link original.

Segurança do .NET Framework

Consulte também

Referência

GraphLink Classe

Namespace Microsoft.VisualStudio.GraphModel