GraphLinkCollection::Remove Method (GraphNodeId^, GraphNodeId^, GraphCategory^)

 

Removes the given category from the link between source and target and if this is the last category, and then it removes the link also.

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

public:
GraphLink^ Remove(
	GraphNodeId^ sourceId,
	GraphNodeId^ targetId,
	GraphCategory^ category
)

Parameters

sourceId
Type: Microsoft.VisualStudio.GraphModel::GraphNodeId^

The source node

targetId
Type: Microsoft.VisualStudio.GraphModel::GraphNodeId^

The target node

category
Type: Microsoft.VisualStudio.GraphModel::GraphCategory^

An initial category to add to the link

Return Value

Type: Microsoft.VisualStudio.GraphModel::GraphLink^

The Link that was removed or null if the link still has other categories

Return to top
Show: