网站存储-可视Web部件 [英] Site storage - Visual web part
本文介绍了网站存储-可视Web部件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用可视Web部件和C#.我正在尝试创建一个Webpart,以显示管理中心中的站点存储集和当前可用空间.
I am using visual web part and C#. I am trying to create a webpart which displays the site storage set in central administration and the current available space .
示例:
Web application 1
- Site collection A - storage assigned: 5 Gb , Storage used: 3 Gb
- Site collection B - - storage assigned: 5 Gb , Storage used: 1 Gb
Web application 2
- Site collection A - storage assigned: 5 Gb , Storage used: 2 Gb
SharePoint 2013是否可以以编程方式(C#)获取此信息.
Is it possible to get this information programmatically ( C# ), SharePoint 2013.
谢谢
推荐答案
SPSite.Usage属性中提供了网站使用情况.
The Site usage is available in the SPSite.Usage property.
https://msdn.microsoft.com/en-us /library/office/microsoft.sharepoint.spsite.usage.aspx
这篇关于网站存储-可视Web部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文