ElementLink::MoveBefore Method (DomainRoleInfo^, ElementLink^)
Change the order of links connected to an element, moving this link before another.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Parameters
- domainRole
-
Type:
Microsoft.VisualStudio.Modeling::DomainRoleInfo^
The role of the element in which to move this link.
- successor
-
Type:
Microsoft.VisualStudio.Modeling::ElementLink^
The link that is to follow this link. Must be a link to the same role as this link, or can be null. If null, the link is moved to the end of the list.
A domain relationship defines two roles – the ends of the relationship at which the relationship connects to a ModelElement. Each role has a type and a cardinality. If the cardinality has an upper value greater than 1, then at runtime, several instances of the domain relationship can be connected to the same ModelElement. They form an ordered list. This method changes the order of the list, moving this link so that it is before another link in the list.