Share via


GraphNodeCollection.Add Method (GraphNode, GraphNode%)

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

Adds the specified node to the graph.

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

Syntax

'Declaration
Public Function Add ( _
    node As GraphNode, _
    <OutAttribute> ByRef resultNode As GraphNode _
) As Boolean
public bool Add(
    GraphNode node,
    out GraphNode resultNode
)
public:
bool Add(
    GraphNode^ node, 
    [OutAttribute] GraphNode^% resultNode
)
member Add : 
        node:GraphNode * 
        resultNode:GraphNode byref -> bool
public function Add(
    node : GraphNode, 
    resultNode : GraphNode
) : boolean

Parameters

Return Value

Type: System.Boolean

Exceptions

Exception Condition
ArgumentNullException

thrown if node is null

InvalidOperationException

thrown if the unique node id already exists

.NET Framework Security

See Also

Reference

GraphNodeCollection Class

Add Overload

Microsoft.VisualStudio.GraphModel Namespace