2013-05-31 27 views
1

當重寫功能:GetOutPutCacheProviderName()在Global.asax中,如下:重寫GetOutPutCacheProviderName()在Global.asax中

public override string GetOutputCacheProviderName(HttpContext context) 
     { 
      if (context.Request.Path.EndsWith("Default.aspx")) 
       return "FuleCacheProvider"; 
      else 
      return base.GetOutputCacheProviderName(context); 
     } 

我不知道是由else語句返回什麼確切的價值?是否:按照MSDN的「內存」?我google搜索,但無法找到base.GetOutPutCacheProviderName()的執行情況。

如果else語句返回的確切值可以提供,那將非常棒!

回答