Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
node
Type: Microsoft.VisualStudio.GraphModel.GraphNodeNode to add
resultNode
Type: Microsoft.VisualStudio.GraphModel.GraphNode%The Node that was added
Return Value
Type: Boolean
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | thrown if node is null |
| InvalidOperationException | thrown if the unique node id already exists |
.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.