Delen via


GraphNodeCollection.Add Method (GraphNode)

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

Adds a link to the graph, or merge it with an existing Link object

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

Syntax

'Declaration
Public Sub Add ( _
    item As GraphNode _
)
public void Add(
    GraphNode item
)
public:
virtual void Add(
    GraphNode^ item
) sealed
abstract Add : 
        item:GraphNode -> unit  
override Add : 
        item:GraphNode -> unit
public final function Add(
    item : GraphNode
)

Parameters

Implements

ICollection<T>.Add(T)

Exceptions

Exception Condition
ArgumentNullException

thrown if link is null

InvalidOperationException

thrown if source of link is not in the graph

-or-

thrown if target of link is not in the graph

.NET Framework Security

See Also

Reference

GraphNodeCollection Class

Add Overload

Microsoft.VisualStudio.GraphModel Namespace