Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
index
Type: System.Int32An Int32 that specifies the index.
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. |