Condividi tramite


GraphDataObject.GetSubset Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Helper method that a new Graph that contains all the selected nodes plus links and nodes linked to up to the given number of levels of indirection

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

Syntax

'Declaration
Public Shared Function GetSubset ( _
    selection As IEnumerable(Of GraphNode), _
    levels As Integer _
) As Graph
public static Graph GetSubset(
    IEnumerable<GraphNode> selection,
    int levels
)
public:
static Graph^ GetSubset(
    IEnumerable<GraphNode^>^ selection, 
    int levels
)
static member GetSubset : 
        selection:IEnumerable<GraphNode> * 
        levels:int -> Graph
public static function GetSubset(
    selection : IEnumerable<GraphNode>, 
    levels : int
) : Graph

Parameters

  • levels
    Type: System.Int32

    The number of levels of indirection to include in the new graph

Return Value

Type: Microsoft.VisualStudio.GraphModel.Graph
New Graph

.NET Framework Security

See Also

Reference

GraphDataObject Class

Microsoft.VisualStudio.GraphModel Namespace