GraphNode::FindRelatedContainmentNodes Method (GraphSearchDirection, GraphSearchOption, array<GraphCategory^>^)

 

Get related nodes that have a containment relationship to this node

Namespace:   Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

public:
IEnumerable<GraphNode^>^ FindRelatedContainmentNodes(
	GraphSearchDirection searchDirection,
	GraphSearchOption searchOption,
	... array<GraphCategory^>^ searchCategories
)

Parameters

searchDirection
Type: Microsoft.VisualStudio.GraphModel::GraphSearchDirection

Direction - either source or target

searchOption
Type: Microsoft.VisualStudio.GraphModel::GraphSearchOption

Whether searchCategories refer to link categories or the category of the related node (either source or target depending on searchDirection)

searchCategories
Type: array<Microsoft.VisualStudio.GraphModel::GraphCategory^>^

The categories to search for. This can be a link category, or a source or target node category, depending on the value of searchOption and searchDirection

Return Value

Type: System.Collections.Generic::IEnumerable<GraphNode^>^

The related nodes

Return to top
Show: