GraphNode.GetSources Method
Gets the sources linked with this node via a link that matches at least 1 of the specified link categories.
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Function GetSources ( _
ParamArray linkCategories As GraphCategory() _
) As IEnumerable(Of GraphNode)
public IEnumerable<GraphNode> GetSources(
params GraphCategory[] linkCategories
)
public:
IEnumerable<GraphNode^>^ GetSources(
... array<GraphCategory^>^ linkCategories
)
member GetSources :
linkCategories:GraphCategory[] -> IEnumerable<GraphNode>
public function GetSources(
... linkCategories : GraphCategory[]
) : IEnumerable<GraphNode>
Parameters
linkCategories
Type: array<Microsoft.VisualStudio.GraphModel.GraphCategory[]0 or more GraphProperty objects that are used to filter the result set. If no categories are provided then all sources are returned.
Return Value
Type: IEnumerable<GraphNode>
A collection of nodes
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.