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
rolePlayerElement
Type: Microsoft.VisualStudio.Modeling.ModelElementThe element playing this role.
domainRoleId
Type: System.GuidThe role played by the element.
Return Value
Type: Microsoft.VisualStudio.Modeling.ModelElement
A ModelElement on the other side of the relationship.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.