using System;
using System.Collections.Generic;
using
System.Linq;
using System.Web;
using System.Web.Mvc;
namespace 过滤器.Filtes
{
/// <summary>
///
授权过滤器,在Action过滤器之前执行
/// </summary>
public class
MyAuthorizeAttribute : AuthorizeAttribute
{
///
<summary>
/// MVC自己的授权方法
/// </summary>
///
<param name="filterContext"></param>
public override void
OnAuthorization(AuthorizationContext filterContext)
{
// base.OnAuthorization(filterContext);asp.net 的授权机制
}
}
}
MVC 授权过滤器 AuthorizeAttribute,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/sumg/p/3744058.html