GraphLinkCollection.GetLinksTo(String, GraphCategory[]) Method

Definition

Get all links to the specified node id have at least one of the specified categories.

public:
 System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphLink ^> ^ GetLinksTo(System::String ^ nodeId, ... cli::array <Microsoft::VisualStudio::GraphModel::GraphCategory ^> ^ categories);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.GraphModel.GraphLinkCollection+<GetLinksTo>d__47))]
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphLink> GetLinksTo (string nodeId, params Microsoft.VisualStudio.GraphModel.GraphCategory[] categories);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.GraphModel.GraphLinkCollection+<GetLinksTo>d__47))>]
member this.GetLinksTo : string * Microsoft.VisualStudio.GraphModel.GraphCategory[] -> seq<Microsoft.VisualStudio.GraphModel.GraphLink>
Public Iterator Function GetLinksTo (nodeId As String, ParamArray categories As GraphCategory()) As IEnumerable(Of GraphLink)

Parameters

nodeId
String

Node to find links to

categories
GraphCategory[]

0 or more categories used to filter the result set. If no categories provided then all links to the node are returned.

Returns

IEnumerable<GraphLink>

Links to the node that match the categories

Attributes

Applies to