ElementLink::MoveToIndex Method (DomainRoleInfo^, Int32)

 

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)

public:
void MoveToIndex(
	DomainRoleInfo^ domainRole,
	int index
)

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.

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.

Return to top
Show: