Share via


GraphNodeCollection.CreateNew Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Add a new node using the given base name format for the node. This method formats the given string with integer values until it finds an id that is not currently being used, and then creates a node with that id.

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

Syntax

'Declaration
Public Function CreateNew ( _
    idFormat As String _
) As GraphNode
public GraphNode CreateNew(
    string idFormat
)
public:
GraphNode^ CreateNew(
    String^ idFormat
)
member CreateNew : 
        idFormat:string -> GraphNode
public function CreateNew(
    idFormat : String
) : GraphNode

Parameters

  • idFormat
    Type: System.String

    The string to format to create the new node id

Return Value

Type: Microsoft.VisualStudio.GraphModel.GraphNode
The newly created node

.NET Framework Security

See Also

Reference

GraphNodeCollection Class

Microsoft.VisualStudio.GraphModel Namespace