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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.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: Guid

    The Guid of the target ShapeElement.

Return Value

Type: Guid

.NET Framework Security

See Also

Reference

DropTargetContext Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace