Compartilhar via


Usage Property

The Usage property of the SPSite class gets information about site usage, including bandwidth, storage, and number of visits to the site collection.

Property Value

A Microsoft.SharePoint.SPSite.UsageInfo structure that contains the usage information.

Example

The following code example iterates through all the site collections on a virtual server and displays the URL and amount of storage used in each.

This example requires using directives (Imports in Visual Basic) for both the Microsoft.SharePoint and Microsoft.SharePoint.Administration namespaces.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security