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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.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
transaction
Type: Microsoft.VisualStudio.Modeling.TransactionThe transaction to check for the drop target context.
targetShapeElementId
Type: System.GuidThe Guid of the target ShapeElement.
Return Value
Type: System.Guid
.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.