共用方式為


DragSourceContext.GetProcessId 方法 (ElementGroup)

取得來源處理序 ID。 如果未指定處理序識別碼,或是沒有拖曳來源內容可供使用,則可能會傳回 0。

命名空間:  Microsoft.VisualStudio.Modeling.Diagrams
組件:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)

語法

'宣告
Public Shared Function GetProcessId ( _
    elementGroup As ElementGroup _
) As Integer
public static int GetProcessId(
    ElementGroup elementGroup
)

參數

傳回值

類型:System.Int32

.NET Framework 安全性

請參閱

參考

DragSourceContext 類別

GetProcessId 多載

Microsoft.VisualStudio.Modeling.Diagrams 命名空間