SharePoint:如何设置某个页面必须由站点集管理员打开

在基于SharePoint Server开发一些应用程序,例如工作流系统的时候,我们经常会用到自定义的aspx页面。而这些页面大多会继承LayoutsPageBase这个基类。那么如何声明当前页面需要站点集(SiteCollection)的管理员才能打开呢?

答案是重写一个属性即可

    protected override bool RequireSiteAdministrator
    {
        get
        {
            return true;
        }
    }

原文地址:https://www.cnblogs.com/chenxizhang/p/1640630.html