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

从该链接移除特定类别在源和目标之间的集成,如果这是最后类,它还然后移除该链接。

命名空间:  Microsoft.VisualStudio.GraphModel
程序集:  Microsoft.VisualStudio.GraphModel(在 Microsoft.VisualStudio.GraphModel.dll 中)

语法

声明
Public Function Remove ( _
    sourceId As String, _
    targetId As String, _
    category As GraphCategory _
) As GraphLink
public GraphLink Remove(
    string sourceId,
    string targetId,
    GraphCategory category
)
public:
GraphLink^ Remove(
    String^ sourceId, 
    String^ targetId, 
    GraphCategory^ category
)
member Remove : 
        sourceId:string * 
        targetId:string * 
        category:GraphCategory -> GraphLink
public function Remove(
    sourceId : String, 
    targetId : String, 
    category : GraphCategory
) : GraphLink

参数

  • sourceId
    类型:String

    source

  • targetId
    类型:String

    目标

返回值

类型:Microsoft.VisualStudio.GraphModel.GraphLink
删除的链接或者还有其他类别的链接为空

.NET Framework 安全性

请参阅

参考

GraphLinkCollection 类

Remove 重载

Microsoft.VisualStudio.GraphModel 命名空间