SPSiteCollection.Count Property

Gets the number of SPSite objects in the collection.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Overrides ReadOnly Property Count As Integer
    Get
'Usage
Dim instance As SPSiteCollection
Dim value As Integer

value = instance.Count
public override int Count { get; }

Property Value

Type: System.Int32
A 32-bit integer that indicates the number of site collections.

Implements

ICollection.Count
ICollection.Count

See Also

Reference

SPSiteCollection Class

SPSiteCollection Members

Microsoft.SharePoint.Administration Namespace