GraphLinkCollection::GetOrCreate Method (GraphNode^, GraphNode^, String^, GraphCategory^)
Visual Studio 2015
Gets the link from the specified source to the specified target node. If not found, a new link will be created.
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
public:
GraphLink^ GetOrCreate(
GraphNode^ source,
GraphNode^ target,
String^ label,
GraphCategory^ category
)
Parameters
- source
-
Type:
Microsoft.VisualStudio.GraphModel::GraphNode^
source node
- target
-
Type:
Microsoft.VisualStudio.GraphModel::GraphNode^
target node
- label
-
Type:
System::String^
displayable label of the link
- category
-
Type:
Microsoft.VisualStudio.GraphModel::GraphCategory^
link category
Show: