Udostępnij za pośrednictwem


GraphLinkCollection.GetOrCreate Method

Include Protected Members
Include Inherited Members

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method GetOrCreate(String, GraphNodeId)
Public method GetOrCreate(String, String) Attempts to get the link with the specified source, target. If not found, a new link will be created. It also creates the source and target Node if those are not already defined (and these are created with no category).
Public method GetOrCreate(GraphNode, GraphNode) Gets the link from the specified source to the specified target node. If not found, a new link will be created.
Public method GetOrCreate(GraphNodeId, GraphNodeId)
Public method GetOrCreate(GraphNodeId, String)
Public method GetOrCreate(String, String, String, GraphCategory) Attempts to get the link with the specified source, target. If not found, a new link will be created. It also adds the specified category if its not already defined. It also creates the source and target Node if those are not already defined (and these are created with no category).
Public method GetOrCreate(GraphNode, GraphNode, String, GraphCategory) Gets the link from the specified source to the specified target node. If not found, a new link will be created.
Public method GetOrCreate(GraphNodeId, GraphNodeId, String, GraphCategory)

Top

See Also

Reference

GraphLinkCollection Class

Microsoft.VisualStudio.GraphModel Namespace