DragSourceContext.GetProcessId 方法

定义

重载

GetProcessId(ElementGroup)

获取源进程 id。如果未指定进程 id 或没有拖动源上下文可用,则这可能会返回0。

GetProcessId(ElementGroupPrototype)

获取源进程 id。如果未指定进程 id 或没有拖动源上下文可用,则这可能会返回0。

GetProcessId(ElementGroup)

获取源进程 id。如果未指定进程 id 或没有拖动源上下文可用,则这可能会返回0。

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

参数

elementGroup
ElementGroup

已将 DragSourceContext 保存到的 ElementGroup。

返回

Int32

源进程 id。

适用于

GetProcessId(ElementGroupPrototype)

获取源进程 id。如果未指定进程 id 或没有拖动源上下文可用,则这可能会返回0。

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

参数

elementGroupPrototype
ElementGroupPrototype

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

返回

Int32

源进程 id。

适用于