DragSourceContext.GetStoreId 方法

定义

重载

GetStoreId(ElementGroup)

获取源存储区 id。如果未指定存储 id 或没有拖动源上下文可用,则此操作可能返回 Guid.empty。

GetStoreId(ElementGroupPrototype)

获取源存储区 id。如果未指定存储 id 或没有拖动源上下文可用,则此操作可能返回 Guid.empty。

GetStoreId(ElementGroup)

获取源存储区 id。如果未指定存储 id 或没有拖动源上下文可用,则此操作可能返回 Guid.empty。

public:
 static Guid GetStoreId(Microsoft::VisualStudio::Modeling::ElementGroup ^ elementGroup);
public static Guid GetStoreId (Microsoft.VisualStudio.Modeling.ElementGroup elementGroup);
static member GetStoreId : Microsoft.VisualStudio.Modeling.ElementGroup -> Guid
Public Shared Function GetStoreId (elementGroup As ElementGroup) As Guid

参数

elementGroup
ElementGroup

已将 DragSourceContext 保存到的 ElementGroup。

返回

Guid

源存储区 id。

适用于

GetStoreId(ElementGroupPrototype)

获取源存储区 id。如果未指定存储 id 或没有拖动源上下文可用,则此操作可能返回 Guid.empty。

public:
 static Guid GetStoreId(Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ elementGroupPrototype);
public static Guid GetStoreId (Microsoft.VisualStudio.Modeling.ElementGroupPrototype elementGroupPrototype);
static member GetStoreId : Microsoft.VisualStudio.Modeling.ElementGroupPrototype -> Guid
Public Shared Function GetStoreId (elementGroupPrototype As ElementGroupPrototype) As Guid

参数

elementGroupPrototype
ElementGroupPrototype

已将 DragSourceContext 保存到的 Elementgroupprototype 创建 elementgroup。

返回

Guid

源存储区 id。

适用于