How to get the size of a site collection through C#?
May 19, 2013 in answer
ANSWER:
It’s really easy to get this via Powershell:
$site = Get-SPSite http://yoursitename.com/site
$site.usage.storage
(disclaimer: please practice proper garbage collection techniques when calling a site or web object in Powershell)
C# uses essentially the same structure and a good example can be found here.
John Craven from http://stackoverflow.com/questions/16642104

New Comments