ElementLink.MoveToIndex Method

Move this link to a specified index position in the list.

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

Syntax

'Declaração
Public Sub MoveToIndex ( _
    domainRole As DomainRoleInfo, _
    index As Integer _
)
public void MoveToIndex(
    DomainRoleInfo domainRole,
    int index
)
public:
void MoveToIndex(
    DomainRoleInfo^ domainRole, 
    int index
)
member MoveToIndex : 
        domainRole:DomainRoleInfo * 
        index:int -> unit 
public function MoveToIndex(
    domainRole : DomainRoleInfo, 
    index : int
)

Parameters

  • index
    Type: System.Int32
    The new index. It must be less than the current number of links on this role.

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. It moves the link to a specified index in the list.

.NET Framework Security

See Also

Reference

ElementLink Class

Microsoft.VisualStudio.Modeling Namespace