DomainRoleInfo.GetLinkedElement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.