Share via


SPListTemplateCollection.Item property (Int32)

Gets the list definition or list template object at the specified index in the collection. In Microsoft Visual C#, this property is an indexer for the SPListTemplateCollection class.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    iIndex As Integer _
) As SPListTemplate
    Get
'Usage
Dim instance As SPListTemplateCollection
Dim iIndex As Integer
Dim value As SPListTemplate

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

Parameters

  • iIndex
    Type: System.Int32

    A 32-bit integer that specifies the index.

Property value

Type: Microsoft.SharePoint.SPListTemplate
A Microsoft.SharePoint.SPListTemplate object that represents the list definitions or list template.

Remarks

The Item property throws an ArgumentOutOfRangeException if the specified index is outside the valid range of indexes for the collection.

See also

Reference

SPListTemplateCollection class

SPListTemplateCollection members

Item overload

Microsoft.SharePoint namespace