在ASP.Net中,使用缓存后替换方式进行页面部分缓存时,需要指定Substitution 控件的Methodname属性,这个属性调用的方法格式正确的是( )

admin2018-06-14  45

问题 在ASP.Net中,使用缓存后替换方式进行页面部分缓存时,需要指定Substitution 控件的Methodname属性,这个属性调用的方法格式正确的是(    )

选项 A、protected string getDateTime(HttpContext context)
  {
   return System.DateTime>Now>toSyring();
  }
B、protected static string getDateTime()
  {
   return System.DateTime>Now>toSyring();
  }
C、protected static string getDateTime(HttpContext context)
  {
   return System.DateTime>Now>toSyring();
  }
D、protected override string getDateTime(HttpContext context)
  {
   return System.DateTime>Now>toSyring();
  }

答案C

解析
转载请注明原文地址:https://jikaoti.com/ti/Sx0iFFFM
0

最新回复(0)