Sdílet prostřednictvím


GraphDataObject.GetSubset – metoda

Pomocnou metodu, kterou nový graf, který obsahuje všechny vybrané uzly a odkazy a uzlů spojena až daný počet úrovní dereference

Obor názvů:  Microsoft.VisualStudio.GraphModel
Sestavení:  Microsoft.VisualStudio.GraphModel (v Microsoft.VisualStudio.GraphModel.dll)

Syntaxe

'Deklarace
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

Parametry

  • selection
    Typ: IEnumerable<GraphNode>

    Vybrané uzly ke klonování

  • levels
    Typ: Int32

    Počet úrovní dereference zahrnout do nového grafu

Vrácená hodnota

Typ: Microsoft.VisualStudio.GraphModel.Graph
Nový graf

Zabezpečení rozhraní .NET Framework

Viz také

Referenční dokumentace

GraphDataObject Třída

Microsoft.VisualStudio.GraphModel – obor názvů