Share via


DropTargetContext.GetSourceId(Transaction, Guid) Method

Definition

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

public:
 static Guid GetSourceId(Microsoft::VisualStudio::Modeling::Transaction ^ transaction, Guid targetShapeElementId);
public static Guid GetSourceId (Microsoft.VisualStudio.Modeling.Transaction transaction, Guid targetShapeElementId);
static member GetSourceId : Microsoft.VisualStudio.Modeling.Transaction * Guid -> Guid
Public Shared Function GetSourceId (transaction As Transaction, targetShapeElementId As Guid) As Guid

Parameters

transaction
Transaction

The transaction to check for the drop target context.

targetShapeElementId
Guid

The Guid of the target ShapeElement.

Returns

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

Applies to