«outputcache» 태그된 질문

2
여러 매개 변수와 함께 VaryByParam을 어떻게 사용합니까?
ASP.NET MVC2에서는 OutputCache및 VaryByParam특성을 사용 합니다. 단일 매개 변수로 잘 작동하지만 메서드에 여러 매개 변수가있을 때 올바른 구문은 무엇입니까? [OutputCache(Duration=30, VaryByParam = "customerId"] public ActionResult Index(int customerId) { //I've got this one under control, since it only has one parameter } [OutputCache(Duration=30, VaryByParam = "customerId"] public ActionResult Index(int customerId, int …
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.