Udostępnij za pośrednictwem


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)

public:
 Microsoft::VisualStudio::GraphModel::GraphNode ^ RenameNode(Microsoft::VisualStudio::GraphModel::GraphNode ^ existingNode, Microsoft::VisualStudio::GraphModel::GraphNodeId ^ targetNodeId);
public Microsoft.VisualStudio.GraphModel.GraphNode RenameNode (Microsoft.VisualStudio.GraphModel.GraphNode existingNode, Microsoft.VisualStudio.GraphModel.GraphNodeId targetNodeId);
member this.RenameNode : Microsoft.VisualStudio.GraphModel.GraphNode * Microsoft.VisualStudio.GraphModel.GraphNodeId -> Microsoft.VisualStudio.GraphModel.GraphNode
Public Function RenameNode (existingNode As GraphNode, targetNodeId As GraphNodeId) As GraphNode

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

RenameNode(GraphNodeId, GraphNodeId)

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

public:
 Microsoft::VisualStudio::GraphModel::GraphNode ^ RenameNode(Microsoft::VisualStudio::GraphModel::GraphNodeId ^ originalNodeId, Microsoft::VisualStudio::GraphModel::GraphNodeId ^ targetNodeId);
public Microsoft.VisualStudio.GraphModel.GraphNode RenameNode (Microsoft.VisualStudio.GraphModel.GraphNodeId originalNodeId, Microsoft.VisualStudio.GraphModel.GraphNodeId targetNodeId);
member this.RenameNode : Microsoft.VisualStudio.GraphModel.GraphNodeId * Microsoft.VisualStudio.GraphModel.GraphNodeId -> Microsoft.VisualStudio.GraphModel.GraphNode
Public Function RenameNode (originalNodeId As GraphNodeId, targetNodeId As GraphNodeId) As GraphNode

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

RenameNode(String, String)

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

public:
 Microsoft::VisualStudio::GraphModel::GraphNode ^ RenameNode(System::String ^ originalNodeId, System::String ^ targetNodeId);
public Microsoft.VisualStudio.GraphModel.GraphNode RenameNode (string originalNodeId, string targetNodeId);
member this.RenameNode : string * string -> Microsoft.VisualStudio.GraphModel.GraphNode
Public Function RenameNode (originalNodeId As String, targetNodeId As String) As GraphNode

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