Share via


DomainRoleInfo.GetLinkedElement Method (ModelElement, Guid)

Gets the element that is linked to this element.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)

Syntax

'Declaration
Public Shared Function GetLinkedElement ( _
    rolePlayerElement As ModelElement, _
    domainRoleId As Guid _
) As ModelElement
public static ModelElement GetLinkedElement(
    ModelElement rolePlayerElement,
    Guid domainRoleId
)
public:
static ModelElement^ GetLinkedElement(
    ModelElement^ rolePlayerElement, 
    Guid domainRoleId
)
static member GetLinkedElement : 
        rolePlayerElement:ModelElement * 
        domainRoleId:Guid -> ModelElement
public static function GetLinkedElement(
    rolePlayerElement : ModelElement, 
    domainRoleId : Guid
) : ModelElement

Parameters

  • domainRoleId
    Type: Guid

    The role played by the element.

Return Value

Type: Microsoft.VisualStudio.Modeling.ModelElement
A ModelElement on the other side of the relationship.

.NET Framework Security

See Also

Reference

DomainRoleInfo Class

GetLinkedElement Overload

Microsoft.VisualStudio.Modeling Namespace