Udostępnij za pośrednictwem


GraphLinkCollection.GetLinksFrom(String, GraphCategory[]) Method

Definition

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

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

Parameters

nodeId
String

Node to find links from.

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

Links from the node that match the categories.

Attributes

Applies to