GraphNodeCollection.CreateNew Method
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: StringThe string to format to create the new node id
Return Value
Type: Microsoft.VisualStudio.GraphModel.GraphNode
The newly created node
.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.