OrderedCollectionBase<T>.MoveTo 方法
将项移动到集合中的指定位置。位置是从零开始。
命名空间: Microsoft.Office.Server.Search.Query.Rules
程序集: Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)
语法
声明
Public Sub MoveTo ( _
index As Integer, _
item As T _
)
用法
Dim instance As OrderedCollectionBase
Dim index As Integer
Dim item As T
instance.MoveTo(index, item)
public void MoveTo(
int index,
T item
)
参数
- index
类型:System.Int32
- item
类型:T
异常
异常 | 条件 |
---|---|
NotSupportedException | 该集合为只读时,引发 |
ArgumentOutOfRangeException | 索引不在集合的有效索引时引发。 |
ArgumentException | 当集合中不存在该项目时,引发 |