Diagram.GetSourceRolePlayerForLinkMappedByConnector(BinaryLinkShape) 方法

定义

连接器映射到 ElementLinks,但它们之间的 Microsoft.visualstudio.modeling.diagrams.presentationviewssubject.presentation 关系不会直接序列化,因此,在反序列化过程中,我们需要重新建立链接。 此方法提供由给定连接器映射的链接的源角色扮演者。 基实现只返回给定连接器的 FromShape 的主题。

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

参数

connector
BinaryLinkShape

返回

ModelElement

适用于