kamagra how much to take

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:

  1. float single;
  2. try
  3. {
  4. single = (float) (((double) web.Site.Usage.Storage) / 1048576);
  5. }
  6. catch (Exception exception)
  7. {
  8. throw new Exception("Error in Site Storage Collection:
  9. " + exception.ToString());
  10. }
Share

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>