Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SharePoint > SharePoint Development
|
SharePoint Development Programming and development for SharePoint Portal Server and Windows SharePoint Services
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SharePoint Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 8th, 2010, 12:30 PM
Registered User
 
Join Date: Apr 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Site Collection Quotas Info Using Asp.net Webapplication

HI,

Can any one please let me know how to get the information of Current Quota Template and Current Storage Used for each site collection through Asp.net webapplication ?

Thanks in advance
 
Old July 14th, 2010, 06:23 AM
Registered User
 
Join Date: Jul 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Getting usage and quota

Code:
        public static long GetSiteCollectionUsage(string siteUrl, out long maxQuota)
        {
            using(SPSite site = new SPSite(siteUrl))
            {
                maxQuota = site.Quota.StorageMaximumLevel;
                return site.Usage.Storage;

            }
        }





Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Create New WebApplication in ASP.Net 1.0 dominicthma ASP.NET 1.x and 2.0 Application Design 1 March 28th, 2006 05:44 PM
ASP.net WebApplication Error nidhinasthra ASP.NET 1.x and 2.0 Application Design 1 August 10th, 2005 06:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.