10
我在我的asp.net mvc(C#)应用程序中有两个自定义属性。asp.net中自定义属性的执行优先级mvc
[CustAttribute1()]
[CustAttribute2()]
当我将这些属性用于我的操作时,哪些会首先执行?
[CustAttribute1()]
[CustAttribute2()]
public ActionResult Index()
{
我可以为我的操作使用多个自定义属性吗?如果是这样,在上面的Action中,哪个自定义属性将首先执行?
感谢这个提示darin – Prasad 2009-11-20 14:02:26
完美的谢谢。 – SacredGeometry 2015-05-29 13:41:45
在'FilterConfig'(Mvc 5)的'filters'中添加的属性怎么样? – 2016-02-23 07:05:30