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 的授权机制
}
}
}
时间: 2024-11-17 04:48:25