Share via


GraphLinkCollection.GetFiltered Method

Returns all nodes in the graph that match according to the given filter

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

Syntax

'Declaration
Public Function GetFiltered ( _
    filter As Func(Of GraphLink, Boolean) _
) As IEnumerable(Of GraphLink)
public IEnumerable<GraphLink> GetFiltered(
    Func<GraphLink, bool> filter
)
public:
IEnumerable<GraphLink^>^ GetFiltered(
    Func<GraphLink^, bool>^ filter
)
member GetFiltered : 
        filter:Func<GraphLink, bool> -> IEnumerable<GraphLink> 
public function GetFiltered(
    filter : Func<GraphLink, boolean>
) : IEnumerable<GraphLink>

Parameters

  • filter
    Type: Func<GraphLink, Boolean>

    The filter to use to check which links to include in the result

Return Value

Type: IEnumerable<GraphLink>
The links chosen by the filter

.NET Framework Security

See Also

Reference

GraphLinkCollection Class

Microsoft.VisualStudio.GraphModel Namespace