Share via


Graph.RenameNode Method (GraphNodeId, GraphNodeId)

Renames a Node in the Graph (clones to new Node and removed original).

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

Syntax

'Declaration
Public Function RenameNode ( _
    originalNodeId As GraphNodeId, _
    targetNodeId As GraphNodeId _
) As GraphNode
public GraphNode RenameNode(
    GraphNodeId originalNodeId,
    GraphNodeId targetNodeId
)
public:
GraphNode^ RenameNode(
    GraphNodeId^ originalNodeId, 
    GraphNodeId^ targetNodeId
)
member RenameNode : 
        originalNodeId:GraphNodeId * 
        targetNodeId:GraphNodeId -> GraphNode
public function RenameNode(
    originalNodeId : GraphNodeId, 
    targetNodeId : GraphNodeId
) : GraphNode

Parameters

Return Value

Type: Microsoft.VisualStudio.GraphModel.GraphNode
The new node with the new ID (all other properties and categories copied from original, including all Links).

.NET Framework Security

See Also

Reference

Graph Class

RenameNode Overload

Microsoft.VisualStudio.GraphModel Namespace