DropTargetContext.GetSourceId 方法

获取数据源 ShapeElement GUID 与给定目标 ShapeElement GUID 对应。

命名空间:  Microsoft.VisualStudio.Modeling.Diagrams
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)

语法

声明
Public Shared Function GetSourceId ( _
    transaction As Transaction, _
    targetShapeElementId As Guid _
) As Guid
public static Guid GetSourceId(
    Transaction transaction,
    Guid targetShapeElementId
)

参数

  • targetShapeElementId
    类型:System.Guid
    目标 ShapeElement 的 GUID。

返回值

类型:System.Guid

.NET Framework 安全性

请参见

参考

DropTargetContext 类

Microsoft.VisualStudio.Modeling.Diagrams 命名空间