首页 > 代码库 > SharePoint 普通Application页面设置匿名访问

SharePoint 普通Application页面设置匿名访问

在Application页面代码中添加如下代码:

    public partial class Detail : UnsecuredLayoutsPageBase
    {
        protected override bool AllowAnonymousAccess
        {
            get
            {
                return true;
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }

SharePoint 普通Application页面设置匿名访问