共用方式為


DragSourceContext.GetProcessId Method (ElementGroup)

Gets the source process id. This can return 0 if no process id was specified or no drag source context is available.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'宣告
Public Shared Function GetProcessId ( _
    elementGroup As ElementGroup _
) As Integer
public static int GetProcessId(
    ElementGroup elementGroup
)
public:
static int GetProcessId(
    ElementGroup^ elementGroup
)
static member GetProcessId : 
        elementGroup:ElementGroup -> int 
public static function GetProcessId(
    elementGroup : ElementGroup
) : int

Parameters

Return Value

Type: System.Int32

.NET Framework Security

See Also

Reference

DragSourceContext Class

GetProcessId Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace