Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
[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 ( _
link As GraphLink, _
<OutAttribute> ByRef result As GraphLink _
)
public void Add(
GraphLink link,
out GraphLink result
)
public:
void Add(
GraphLink^ link,
[OutAttribute] GraphLink^% result
)
member Add :
link:GraphLink *
result:GraphLink byref -> unit
public function Add(
link : GraphLink,
result : GraphLink
)
Parameters
link
Type: Microsoft.VisualStudio.GraphModel.GraphLinklink to add
result
Type: Microsoft.VisualStudio.GraphModel.GraphLink%The link that was added or the old link that was merged into
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.