0
MVC 4MVC:在行动中访问属性值
我有饰有一个动作过滤器这样的动作:
[ViewPermission(PermissionType.GlobalUser)]
public ActionResult General()
{
var permissionType = // trying to access the value passed to the filter ie. PermissionType.GlobalUser value
return View();
}
是否有一种方式来获得从里面acation过滤器的属性行动本身?
在此先感谢。
的帮助表示感谢,并详细介绍一下反思。 – Killilea