다음을 통해 공유


Diagram.GetSourceRolePlayerForLinkMappedByConnector(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 source role-player of the link mapped by the given connector. The base implementation just returns the Subject of the FromShape of the given connector.

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

Parameters

connector
BinaryLinkShape

Returns

Applies to