Change the order of links connected to an element, moving this link before another.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
'Declaration Public Sub MoveBefore ( _ domainRole As DomainRoleInfo, _ successor As ElementLink _ )
public void MoveBefore( DomainRoleInfo domainRole, ElementLink successor )
public: void MoveBefore( DomainRoleInfo^ domainRole, ElementLink^ successor )
member MoveBefore : domainRole:DomainRoleInfo * successor:ElementLink -> unit
public function MoveBefore( domainRole : DomainRoleInfo, successor : ElementLink )
The role of the element in which to move this link.
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.
.NET Framework Security
- 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.