คำถามติดแท็ก 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 languageId) { //What is the correct syntax for VaryByParam now that I have …
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.