获取集合中指定索引处的列表对象。
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public ReadOnly Default Property Item ( _
index As Integer _
) As SPList
Get
用法
Dim instance As SPListCollection
Dim index As Integer
Dim value As SPList
value = instance(index)
public SPList this[
int index
] { get; }
参数
index
类型:System.Int32若要获取列表的索引。
属性值
类型:Microsoft.SharePoint.SPList
SPList 对象,该对象代表列表。
备注
如果指定的索引超出索引的集合的有效范围,则Item属性引发ArgumentOutOfRangeException异常。