Diagram.GetSourceRolePlayerForLinkMappedByConnector(BinaryLinkShape) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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