Graph.RenameNode Method

Definition

Overloads

RenameNode(GraphNode, GraphNodeId)

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

RenameNode(GraphNodeId, GraphNodeId)

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

RenameNode(String, String)

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

RenameNode(GraphNode, GraphNodeId)

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

C++
public:
 Microsoft::VisualStudio::GraphModel::GraphNode ^ RenameNode(Microsoft::VisualStudio::GraphModel::GraphNode ^ existingNode, Microsoft::VisualStudio::GraphModel::GraphNodeId ^ targetNodeId);

Parameters

existingNode
GraphNode

The Node to rename

targetNodeId
GraphNodeId

Id of the new Node

Returns

The new node with the new Id (all other properties and categories copied from original, including all Links)

Applies to

Visual Studio SDK 2022 and other versions
Product Versions
Visual Studio SDK 2017, 2019, 2022

RenameNode(GraphNodeId, GraphNodeId)

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

C++
public:
 Microsoft::VisualStudio::GraphModel::GraphNode ^ RenameNode(Microsoft::VisualStudio::GraphModel::GraphNodeId ^ originalNodeId, Microsoft::VisualStudio::GraphModel::GraphNodeId ^ targetNodeId);

Parameters

originalNodeId
GraphNodeId

Id of the Node to rename

targetNodeId
GraphNodeId

Id of the new Node

Returns

The new node with the new Id (all other properties and categories copied from original, including all Links)

Applies to

Visual Studio SDK 2022 and other versions
Product Versions
Visual Studio SDK 2017, 2019, 2022

RenameNode(String, String)

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

C++
public:
 Microsoft::VisualStudio::GraphModel::GraphNode ^ RenameNode(System::String ^ originalNodeId, System::String ^ targetNodeId);

Parameters

originalNodeId
String

Id of the Node to rename

targetNodeId
String

Id of the new Node

Returns

The new node with the new Id (all other properties and categories copied from original, including all Links)

Applies to

Visual Studio SDK 2022 and other versions
Product Versions
Visual Studio SDK 2017, 2019, 2022