Graph.RenameNode Method (String, String)
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 String, _
targetNodeId As String _
) As GraphNode
public GraphNode RenameNode(
string originalNodeId,
string targetNodeId
)
public:
GraphNode^ RenameNode(
String^ originalNodeId,
String^ targetNodeId
)
member RenameNode :
originalNodeId:string *
targetNodeId:string -> GraphNode
public function RenameNode(
originalNodeId : String,
targetNodeId : String
) : GraphNode
Parameters
originalNodeId
Type: StringID of the node to rename.
targetNodeId
Type: StringID of the new node.
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
- 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.