Share via


DropTargetContext.GetSourceId Method

Gets the source ShapeElement Guid corresponding to the given target ShapeElement Guid.

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

Syntax

'Declaration
Public Shared Function GetSourceId ( _
    transaction As Transaction, _
    targetShapeElementId As Guid _
) As Guid
public static Guid GetSourceId(
    Transaction transaction,
    Guid targetShapeElementId
)
public:
static Guid GetSourceId(
    Transaction^ transaction, 
    Guid targetShapeElementId
)
static member GetSourceId : 
        transaction:Transaction * 
        targetShapeElementId:Guid -> Guid 
public static function GetSourceId(
    transaction : Transaction, 
    targetShapeElementId : Guid
) : Guid

Parameters

  • targetShapeElementId
    Type: System.Guid
    The Guid of the target ShapeElement.

Return Value

Type: System.Guid

.NET Framework Security

See Also

Reference

DropTargetContext Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace