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)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
index As Integer _
) As SPSite
Get
'Usage
Dim instance As SPSiteCollection
Dim index As Integer
Dim value As SPSite
value = instance(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.