SPListTemplateCollection.Item 属性 (Int32)

获取集合中指定索引处的列表定义或列表模板对象。在 Microsoft Visual C#,此属性是SPListTemplateCollection类索引器。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public ReadOnly Default Property Item ( _
    iIndex As Integer _
) As SPListTemplate
    Get
用法
Dim instance As SPListTemplateCollection
Dim iIndex As Integer
Dim value As SPListTemplate

value = instance(iIndex)
public SPListTemplate this[
    int iIndex
] { get; }

参数

  • iIndex
    类型:System.Int32

    32 位整数,指定的索引。

属性值

类型:Microsoft.SharePoint.SPListTemplate
一个代表列表定义或列表模板的Microsoft.SharePoint.SPListTemplate对象。

备注

如果指定的 index 是索引集的有效范围之外, Item属性将引发ArgumentOutOfRangeException 。

另请参阅

引用

SPListTemplateCollection 类

SPListTemplateCollection 成员

Item 重载

Microsoft.SharePoint 命名空间