다음을 통해 공유


DomainRoleInfo.GetLinkedElement Method

Definition

Overloads

GetLinkedElement(ModelElement)

Gets the element linked to this element via 1..1 or 0..1 relationship.

GetLinkedElement(ModelElement, Guid)

Gets the element linked to this element via 1..1 or 0..1 relationship.

GetLinkedElement(ModelElement)

Gets the element linked to this element via 1..1 or 0..1 relationship.

public:
 Microsoft::VisualStudio::Modeling::ModelElement ^ GetLinkedElement(Microsoft::VisualStudio::Modeling::ModelElement ^ rolePlayerElement);
public Microsoft.VisualStudio.Modeling.ModelElement GetLinkedElement (Microsoft.VisualStudio.Modeling.ModelElement rolePlayerElement);
member this.GetLinkedElement : Microsoft.VisualStudio.Modeling.ModelElement -> Microsoft.VisualStudio.Modeling.ModelElement
Public Function GetLinkedElement (rolePlayerElement As ModelElement) As ModelElement

Parameters

rolePlayerElement
ModelElement

Element playing this role.

Returns

Element on the other side of relationship.

Applies to

GetLinkedElement(ModelElement, Guid)

Gets the element linked to this element via 1..1 or 0..1 relationship.

public:
 static Microsoft::VisualStudio::Modeling::ModelElement ^ GetLinkedElement(Microsoft::VisualStudio::Modeling::ModelElement ^ rolePlayerElement, Guid domainRoleId);
public static Microsoft.VisualStudio.Modeling.ModelElement GetLinkedElement (Microsoft.VisualStudio.Modeling.ModelElement rolePlayerElement, Guid domainRoleId);
static member GetLinkedElement : Microsoft.VisualStudio.Modeling.ModelElement * Guid -> Microsoft.VisualStudio.Modeling.ModelElement
Public Shared Function GetLinkedElement (rolePlayerElement As ModelElement, domainRoleId As Guid) As ModelElement

Parameters

rolePlayerElement
ModelElement

Element playing a role.

domainRoleId
Guid

Role played by the element.

Returns

Element on the other side of relationship.

Applies to