Share via


SPWebTemplateCollection.Item Property (Int32)

Gets the site definition configuration or Web template object at the specified index in the collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public ReadOnly Property Item ( _
    index As Integer _
) As SPWebTemplate
    Get
'Usage
Dim instance As SPWebTemplateCollection
Dim index As Integer
Dim value As SPWebTemplate

value = instance.Item(index)
public SPWebTemplate this[
    int index
] { get; }

Parameters

Property Value

Type: Microsoft.SharePoint.SPWebTemplate
A Microsoft.SharePoint.SPWebTemplate object that represents the site definition configuration or Web template.

Exceptions

Exception Condition
ArgumentOutOfRangeException

index is outside the valid range of indices for the collection.

See Also

Reference

SPWebTemplateCollection Class

SPWebTemplateCollection Members

Item Overload

Microsoft.SharePoint Namespace