Partilhar via


GraphLinkCollection.Add Method

Definition

Overloads

Add(GraphLink)

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

Add(IEnumerable<GraphLink>)

Add all the links in the given set.

Add(GraphLink, GraphLink)

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

Add(GraphLink)

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

public:
 virtual void Add(Microsoft::VisualStudio::GraphModel::GraphLink ^ item);
public void Add (Microsoft.VisualStudio.GraphModel.GraphLink item);
abstract member Add : Microsoft.VisualStudio.GraphModel.GraphLink -> unit
override this.Add : Microsoft.VisualStudio.GraphModel.GraphLink -> unit
Public Sub Add (item As GraphLink)

Parameters

item
GraphLink

Link to add

Implements

Exceptions

thrown if link is null

thrown if target of link is not in the graph

Applies to

Add(IEnumerable<GraphLink>)

Add all the links in the given set.

public:
 void Add(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphLink ^> ^ links);
public void Add (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphLink> links);
member this.Add : seq<Microsoft.VisualStudio.GraphModel.GraphLink> -> unit
Public Sub Add (links As IEnumerable(Of GraphLink))

Parameters

links
IEnumerable<GraphLink>

The set of links to add.

Applies to

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

public:
 void Add(Microsoft::VisualStudio::GraphModel::GraphLink ^ link, [Runtime::InteropServices::Out] Microsoft::VisualStudio::GraphModel::GraphLink ^ % result);
public void Add (Microsoft.VisualStudio.GraphModel.GraphLink link, out Microsoft.VisualStudio.GraphModel.GraphLink result);
member this.Add : Microsoft.VisualStudio.GraphModel.GraphLink * GraphLink -> unit
Public Sub Add (link As GraphLink, ByRef result As GraphLink)

Parameters

link
GraphLink

Link to add

result
GraphLink

The link that was actually added which may be different from the parameter passed in

Exceptions

thrown if link is null

thrown if target of link is not in the graph

Applies to