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)

Syntax

'Declaration
Public Function Remove ( _
    sourceId As GraphNodeId, _
    targetId As GraphNodeId, _
    category As GraphCategory _
) As GraphLink
public GraphLink Remove(
    GraphNodeId sourceId,
    GraphNodeId targetId,
    GraphCategory category
)
public:
GraphLink^ Remove(
    GraphNodeId^ sourceId, 
    GraphNodeId^ targetId, 
    GraphCategory^ category
)
member Remove : 
        sourceId:GraphNodeId * 
        targetId:GraphNodeId * 
        category:GraphCategory -> GraphLink
public function Remove(
    sourceId : GraphNodeId, 
    targetId : GraphNodeId, 
    category : GraphCategory
) : GraphLink

Parameters

Return Value

Type: Microsoft.VisualStudio.GraphModel.GraphLink
The Link that was removed or null if the link still has other categories

.NET Framework Security

See Also

Reference

GraphLinkCollection Class

Remove Overload

Microsoft.VisualStudio.GraphModel Namespace