Udostępnij za pośrednictwem


GraphNode.FindRelatedContainmentNodes Method

Definition

Overloads

FindRelatedContainmentNodes(GraphSearchDirection)

Get related nodes that have a containment relationship to this node

FindRelatedContainmentNodes(GraphSearchDirection, GraphSearchOption, GraphCategory[])

Get related nodes that have a containment relationship to this node

FindRelatedContainmentNodes(GraphSearchDirection)

Get related nodes that have a containment relationship to this node

public:
 System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphNode ^> ^ FindRelatedContainmentNodes(Microsoft::VisualStudio::GraphModel::GraphSearchDirection searchDirection);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.GraphModel.GraphNode+<FindRelatedContainmentNodes>d__37))]
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphNode> FindRelatedContainmentNodes (Microsoft.VisualStudio.GraphModel.GraphSearchDirection searchDirection);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.GraphModel.GraphNode+<FindRelatedContainmentNodes>d__37))>]
member this.FindRelatedContainmentNodes : Microsoft.VisualStudio.GraphModel.GraphSearchDirection -> seq<Microsoft.VisualStudio.GraphModel.GraphNode>
Public Iterator Function FindRelatedContainmentNodes (searchDirection As GraphSearchDirection) As IEnumerable(Of GraphNode)

Parameters

searchDirection
GraphSearchDirection

Direction - either source or target

Returns

The related nodes

Attributes

Applies to

FindRelatedContainmentNodes(GraphSearchDirection, GraphSearchOption, GraphCategory[])

Get related nodes that have a containment relationship to this node

public:
 System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphNode ^> ^ FindRelatedContainmentNodes(Microsoft::VisualStudio::GraphModel::GraphSearchDirection searchDirection, Microsoft::VisualStudio::GraphModel::GraphSearchOption searchOption, ... cli::array <Microsoft::VisualStudio::GraphModel::GraphCategory ^> ^ searchCategories);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.GraphModel.GraphNode+<FindRelatedContainmentNodes>d__38))]
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphNode> FindRelatedContainmentNodes (Microsoft.VisualStudio.GraphModel.GraphSearchDirection searchDirection, Microsoft.VisualStudio.GraphModel.GraphSearchOption searchOption, params Microsoft.VisualStudio.GraphModel.GraphCategory[] searchCategories);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.GraphModel.GraphNode+<FindRelatedContainmentNodes>d__38))>]
member this.FindRelatedContainmentNodes : Microsoft.VisualStudio.GraphModel.GraphSearchDirection * Microsoft.VisualStudio.GraphModel.GraphSearchOption * Microsoft.VisualStudio.GraphModel.GraphCategory[] -> seq<Microsoft.VisualStudio.GraphModel.GraphNode>
Public Iterator Function FindRelatedContainmentNodes (searchDirection As GraphSearchDirection, searchOption As GraphSearchOption, ParamArray searchCategories As GraphCategory()) As IEnumerable(Of GraphNode)

Parameters

searchDirection
GraphSearchDirection

Direction - either source or target

searchOption
GraphSearchOption

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

searchCategories
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

Returns

The related nodes

Attributes

Applies to