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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Syntax
'Declaration
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
elementGroup
Type: Microsoft.VisualStudio.Modeling.ElementGroupThe ElementGroup where the DragSourceContext has been saved to.
Return Value
Type: Int32
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.