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.
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
- index
Type: System.Int32
- 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