OrderedCollectionBase<T>.MoveTo method

Moves the item to the specified position in the collection. Position is zero-based.

Namespace:  Microsoft.Office.Server.Search.Query.Rules
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Sub MoveTo ( _
    index As Integer, _
    item As T _
)
'Usage
Dim instance As OrderedCollectionBase
Dim index As Integer
Dim item As T

instance.MoveTo(index, item)
public void MoveTo(
    int index,
    T item
)

Parameters

  • item
    Type: T

Exceptions

Exception Condition
NotSupportedException

Thrown when the collection is read only

ArgumentOutOfRangeException

Thrown when index is not a valid index in the collection.

ArgumentException

Thrown when the item doesn't exist in the collection

See also

Reference

OrderedCollectionBase<T> class

OrderedCollectionBase<T> members

Microsoft.Office.Server.Search.Query.Rules namespace