How do I use VaryByParam with multiple parameters?

后端 未结 2 533
南旧
南旧 2020-12-23 20:07

In ASP.NET MVC2 I use OutputCache and the VaryByParam attribute. I got it working fine with a single parameter, but what is the correct syntax when

2条回答
  •  情书的邮戳
    2020-12-23 20:41

    You can also use * to include all parameters

     [OutputCache(Duration =9234556,VaryByParam = "*")]
    

提交回复
热议问题