Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Move this link to a specified index position in the list.
Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
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
- domainRole 
 Type: Microsoft.VisualStudio.Modeling.DomainRoleInfo- The role of the element in which to move this link. 
- 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
- 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.