AttributeRelationshipCollection.Move Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Move(AttributeRelationship, Int32) |
Moves the specified AttributeRelationship to a new position in the collection. |
Move(Int32, Int32) |
Moves an AttributeRelationship in the collection from the current position to a new one. |
Move(String, Int32) |
Moves an AttributeRelationship, with the specified AttributeID, to a new position in the collection. |
Move(AttributeRelationship, Int32)
Moves the specified AttributeRelationship to a new position in the collection.
public void Move (Microsoft.AnalysisServices.AttributeRelationship item, int toIndex);
override this.Move : Microsoft.AnalysisServices.AttributeRelationship * int -> unit
Public Sub Move (item As AttributeRelationship, toIndex As Integer)
Parameters
The AttributeRelationship to be moved.
- toIndex
- Int32
The zero-based index to which to move the specified AttributeRelationship.
Exceptions
- The specified AttributeRelationship does not exist the collection.
- The specified toIndex is not a valid value (less than zero or bigger then the total number of elements).
Applies to
Move(Int32, Int32)
Moves an AttributeRelationship in the collection from the current position to a new one.
public Microsoft.AnalysisServices.AttributeRelationship Move (int fromIndex, int toIndex);
override this.Move : int * int -> Microsoft.AnalysisServices.AttributeRelationship
Public Function Move (fromIndex As Integer, toIndex As Integer) As AttributeRelationship
Parameters
- fromIndex
- Int32
The zero-based index of the AttributeRelationship to be moved.
- toIndex
- Int32
The zero-based index to which to move the AttributeRelationship specified by fromIndex.
Returns
The AttributeRelationship that was moved.
Exceptions
- The specified fromIndex is not a valid value (less than zero or bigger then the total number of elements).
- The specified toIndex is not a valid value (less than zero or bigger then the total number of elements).
Applies to
Move(String, Int32)
Moves an AttributeRelationship, with the specified AttributeID, to a new position in the collection.
public Microsoft.AnalysisServices.AttributeRelationship Move (string attributeId, int toIndex);
override this.Move : string * int -> Microsoft.AnalysisServices.AttributeRelationship
Public Function Move (attributeId As String, toIndex As Integer) As AttributeRelationship
Parameters
- attributeId
- String
The AttributeID of the AttributeRelationship to be moved.
- toIndex
- Int32
The zero-based index to which to move the AttributeRelationship specified by fromIndex.
Returns
The AttributeRelationship that was moved.
Exceptions
- attributeId is not a valid AttributeID to an AttributeRelationship in the collection.
- The specified toIndex is not a valid value (less than zero or bigger then the total number of elements).