【发布时间】:2011-05-28 18:47:13
【问题描述】:
我想做这样的事情
[MyAttribute(Message="Please upgrade to view " + name)]
public ActionResult Details(string name)
{
....
}
我知道我可以从属性代码本身内部调用filterContext.ActionDescriptor.GetParameters(),但是有什么方法可以在控制器中使用它们吗?
【问题讨论】:
标签: asp.net-mvc custom-attributes