Compartilhar via


GraphNode.GetSources(GraphCategory[]) Method

Definition

Gets the sources linked with this node via a link that matches at least 1 of the specified link categories.

public:
 System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphNode ^> ^ GetSources(... cli::array <Microsoft::VisualStudio::GraphModel::GraphCategory ^> ^ linkCategories);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.GraphModel.GraphNode+<GetSources>d__36))]
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphNode> GetSources (params Microsoft.VisualStudio.GraphModel.GraphCategory[] linkCategories);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.GraphModel.GraphNode+<GetSources>d__36))>]
member this.GetSources : Microsoft.VisualStudio.GraphModel.GraphCategory[] -> seq<Microsoft.VisualStudio.GraphModel.GraphNode>
Public Iterator Function GetSources (ParamArray linkCategories As GraphCategory()) As IEnumerable(Of GraphNode)

Parameters

linkCategories
GraphCategory[]

0 or more GraphProperty objects used to filter the result set. If no categories are provided then all sources are returned.

Returns

A collection of nodes

Attributes

Applies to