DomainRoleInfo.GetLinkedElement Method (ModelElement, Guid)

Gets the element that is linked to this element.

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

Syntax

'宣言
Public Shared Function GetLinkedElement ( _
    rolePlayerElement As ModelElement, _
    domainRoleId As Guid _
) As ModelElement
'使用
Dim rolePlayerElement As ModelElement
Dim domainRoleId As Guid
Dim returnValue As ModelElement

returnValue = DomainRoleInfo.GetLinkedElement(rolePlayerElement, _
    domainRoleId)
public static ModelElement GetLinkedElement(
    ModelElement rolePlayerElement,
    Guid domainRoleId
)
public:
static ModelElement^ GetLinkedElement(
    ModelElement^ rolePlayerElement, 
    Guid domainRoleId
)
public static function GetLinkedElement(
    rolePlayerElement : ModelElement, 
    domainRoleId : Guid
) : ModelElement

Parameters

  • domainRoleId
    Type: System.Guid

    The role played by the element.

Return Value

Type: Microsoft.VisualStudio.Modeling.ModelElement

A ModelElement on the other side of the relationship.

Permissions

See Also

Reference

DomainRoleInfo Class

DomainRoleInfo Members

GetLinkedElement Overload

Microsoft.VisualStudio.Modeling Namespace