How to display SharePoint Site Storage
Sometimes you want to display the storage allocated for a particular SharePoint site, and fortunatly the SPSite.UsageInfo structure provides this information. In order to display the site storage for a site, here is the code:
C#:
-
float single;
-
try
-
{
-
single = (float) (((double) web.Site.Usage.Storage) / 1048576);
-
}
-
catch (Exception exception)
-
{
-
" + exception.ToString());
-
}
Related posts:
- Display A SharePoint Users Role Collection
- Pretty Up WebPart Exception Display
- Portal Context, User Profile Manager, and User Profile
- Interpolating Data Points On A Two Dimensional Regular Grid
- What the hell is NaN?
1 Comment »
RSS feed for comments on this post. TrackBack URL























Articles & Research
SharePoint Architecture
Research Methodology
Personal/Off-Topic
Article Or Research Filed Under 

[...] How to display SharePoint Site Storage [...]
Pingback by Links (4/10/2007 « Steve Pietrek’s SharePoint Weblog) — April 10, 2007 @ 5:08 pm