Udostępnij za pośrednictwem


Diagram.GetTargetRolePlayerForLinkMappedByConnector(BinaryLinkShape) Method

Definition

Connectors are mapped to ElementLinks, but the PresentationViewsSubject relationship between them are not serialized directly, so during deserialization, we need to re-establish the link. This method gives the target role-player of the link mapped by the given connector. The base implementation just returns the Subject of the ToShape of the given connector.

protected public:
 virtual Microsoft::VisualStudio::Modeling::ModelElement ^ GetTargetRolePlayerForLinkMappedByConnector(Microsoft::VisualStudio::Modeling::Diagrams::BinaryLinkShape ^ connector);
protected internal virtual Microsoft.VisualStudio.Modeling.ModelElement GetTargetRolePlayerForLinkMappedByConnector (Microsoft.VisualStudio.Modeling.Diagrams.BinaryLinkShape connector);
abstract member GetTargetRolePlayerForLinkMappedByConnector : Microsoft.VisualStudio.Modeling.Diagrams.BinaryLinkShape -> Microsoft.VisualStudio.Modeling.ModelElement
override this.GetTargetRolePlayerForLinkMappedByConnector : Microsoft.VisualStudio.Modeling.Diagrams.BinaryLinkShape -> Microsoft.VisualStudio.Modeling.ModelElement
Protected Friend Overridable Function GetTargetRolePlayerForLinkMappedByConnector (connector As BinaryLinkShape) As ModelElement

Parameters

connector
BinaryLinkShape

Returns

Applies to