函数(方法)级的授权

参考地址:

http://www.cnblogs.com/vibration/archive/2004/04/29/8054.html

2:http://www.cnblogs.com/yanyangtian/category/186446.html

3:http://www.cnblogs.com/jacktu/archive/2007/12/26/1016133.html

--------------------

 只允许WebManager角色访问 Page_Load

   using System.Security.Permissions;

    [PrincipalPermission(SecurityAction.Demand,Role="WebManager")]
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }

你可能感兴趣的:(函数)