DragSourceContext.GetDiagramId 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| GetDiagramId(ElementGroup) |
获取源关系图 id。如果未指定关系图 id 或没有拖动源上下文可用,则此操作可能返回 Guid.empty。 |
| GetDiagramId(ElementGroupPrototype) |
获取源关系图 id。如果未指定关系图 id 或没有拖动源上下文可用,则此操作可能返回 Guid.empty。 |
GetDiagramId(ElementGroup)
获取源关系图 id。如果未指定关系图 id 或没有拖动源上下文可用,则此操作可能返回 Guid.empty。
public:
static Guid GetDiagramId(Microsoft::VisualStudio::Modeling::ElementGroup ^ elementGroup);
public static Guid GetDiagramId (Microsoft.VisualStudio.Modeling.ElementGroup elementGroup);
static member GetDiagramId : Microsoft.VisualStudio.Modeling.ElementGroup -> Guid
Public Shared Function GetDiagramId (elementGroup As ElementGroup) As Guid
参数
- elementGroup
- ElementGroup
已将 DragSourceContext 保存到的 ElementGroup。
返回
源关系图 id。
适用于
GetDiagramId(ElementGroupPrototype)
获取源关系图 id。如果未指定关系图 id 或没有拖动源上下文可用,则此操作可能返回 Guid.empty。
public:
static Guid GetDiagramId(Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ elementGroupPrototype);
public static Guid GetDiagramId (Microsoft.VisualStudio.Modeling.ElementGroupPrototype elementGroupPrototype);
static member GetDiagramId : Microsoft.VisualStudio.Modeling.ElementGroupPrototype -> Guid
Public Shared Function GetDiagramId (elementGroupPrototype As ElementGroupPrototype) As Guid
参数
- elementGroupPrototype
- ElementGroupPrototype
已将 DragSourceContext 保存到的 Elementgroupprototype 创建 elementgroup。
返回
源关系图 id。