Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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 GraphLink _
)
public void Add(
GraphLink item
)
public:
virtual void Add(
GraphLink^ item
) sealed
abstract Add :
item:GraphLink -> unit
override Add :
item:GraphLink -> unit
public final function Add(
item : GraphLink
)
Parameters
item
Type: Microsoft.VisualStudio.GraphModel.GraphLinklink to add
Implements
ICollection.Add(UTP)
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
- 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.