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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'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
)
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.
Remarks
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.