共用方式為


GraphLinkCollection.Remove 方法 (GraphNodeId, GraphNodeId, GraphCategory)

從連結移除特定分類在來源和目標之間,而如果是最後一個分類,然後也會移除連結。

命名空間:  Microsoft.VisualStudio.GraphModel
組件:  Microsoft.VisualStudio.GraphModel (在 Microsoft.VisualStudio.GraphModel.dll 中)

語法

'宣告
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

參數

傳回值

型別:Microsoft.VisualStudio.GraphModel.GraphLink
已移除的連結或 null,如果連結仍有其他分類

.NET Framework 安全性

請參閱

參考

GraphLinkCollection 類別

Remove 多載

Microsoft.VisualStudio.GraphModel 命名空間