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
参数
sourceId
类型:Microsoft.VisualStudio.GraphModel.GraphNodeId源节点
targetId
类型:Microsoft.VisualStudio.GraphModel.GraphNodeId目标节点
category
类型:Microsoft.VisualStudio.GraphModel.GraphCategory添加的初始类别为链接
返回值
类型:Microsoft.VisualStudio.GraphModel.GraphLink
已移除的链接或空,如果链接仍有其他类别
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。