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)

Syntax

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

value = instance(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