GraphLinkCollection.GetLinksTo(String, GraphCategory[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Links to the node that match the categories
- Attributes