SPSiteCollection.Item property (Int32)
Gets the SPSite object at the specified index in the collection. In C#, this property is an indexer for the SPSiteCollection class.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public ReadOnly Property Item ( _
index As Integer _
) As SPSite
Get
'Usage
Dim instance As SPSiteCollection
Dim index As Integer
Dim value As SPSite
value = instance.Item(index)
public SPSite this[
int index
] { get; }
Parameters
index
Type: System.Int32A 32-bit integer that specifies the index.
Property value
Type: Microsoft.SharePoint.SPSite
An SPSite object that represents the top-level site.