Graph.ImportSubset Method (GraphNode, Boolean, Int32)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Clones the given node and its properties and the given number of levels of links and all the nodes those links point to and imports all these new nodes and links into this graph. If levels is zero, no links are copied. If levels is 1, it copies one level of links and all the nodes they point to.
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Function ImportSubset ( _
node As GraphNode, _
hideOtherNodes As Boolean, _
levels As Integer _
) As GraphNode
public GraphNode ImportSubset(
GraphNode node,
bool hideOtherNodes,
int levels
)
public:
GraphNode^ ImportSubset(
GraphNode^ node,
bool hideOtherNodes,
int levels
)
member ImportSubset :
node:GraphNode *
hideOtherNodes:bool *
levels:int -> GraphNode
public function ImportSubset(
node : GraphNode,
hideOtherNodes : boolean,
levels : int
) : GraphNode
Parameters
node
Type: Microsoft.VisualStudio.GraphModel.GraphNodeThe node to clone.
hideOtherNodes
Type: System.BooleanFlag indicating whether to set Visibility to Hidden on any secondary nodes that are copied by this cloning process.
levels
Type: System.Int32How many more levels of indirection to include.
Return Value
Type: Microsoft.VisualStudio.GraphModel.GraphNode
.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.