SPListItemCollection.ReorderItems 方法
Reorders the items in the list.
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Sub ReorderItems ( _
arrMovedItems As Boolean(), _
arrNewPositions As Integer(), _
positionOffset As Integer _
)
用法
Dim instance As SPListItemCollection
Dim arrMovedItems As Boolean()
Dim arrNewPositions As Integer()
Dim positionOffset As Integer
instance.ReorderItems(arrMovedItems, _
arrNewPositions, positionOffset)
public void ReorderItems(
bool[] arrMovedItems,
int[] arrNewPositions,
int positionOffset
)
参数
arrMovedItems
类型:[]An array that contains bits that specify whether items need to be updated.
arrNewPositions
类型:[]The new positions for the items in the collection.
positionOffset
类型:System.Int32The starting position of the items that are being reordered.
备注
This method checks the data for the list item to ensure that it is current, and reorders the items in the collection from the position specified by the positionOffset parameter with the new positions specified by the arrNewPositions parameter.