ElementLink.MoveBefore Method

Change the order of links connected to an element, moving this link before another.

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


Public Sub MoveBefore ( _
    domainRole As DomainRoleInfo, _
    successor As ElementLink _
public void MoveBefore(
    DomainRoleInfo domainRole,
    ElementLink successor
void MoveBefore(
    DomainRoleInfo^ domainRole, 
    ElementLink^ successor
member MoveBefore : 
        domainRole:DomainRoleInfo * 
        successor:ElementLink -> unit
public function MoveBefore(
    domainRole : DomainRoleInfo, 
    successor : ElementLink



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

See Also


ElementLink Class

Microsoft.VisualStudio.Modeling Namespace