可学答题网 > 问答 > MCTS(70-515)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

You are implementing&#8194


You are implementing an ASP.NET Web site. The site uses a component that must be dynamically configured before it can be used within site pages. You create a static method named SiteHelper.Configure that configures the component. You need to add a code segment to the Global.asax file that invokes the SiteHelper.Configure method the first time, and only the first time, that any page in the site is requested. Which code segment should you use? ()

  • Avoid Application_Start(object sender, EventArgs e) { SiteHelper.Configure(); }
  • Bvoid Application_Init(object sender, EventArgs e) { SiteHelper.Configure(); }
  • Cvoid Application_BeginRequest(object sender, EventArgs e) { SiteHelper.Configure(); }
  • DObject lockObject = new Object(); void Application_BeginRequest(object sender, EventArgs e) { lock(lockObject()) { SiteHelper.Configure(); } }
参考答案
参考解析:
分类:MCTS(70-515)题库
相关推荐

1、You are implementing 

You are implementing an ASP.NET Web site. The root directory of the site contains&#8194...

2、You are implementing 

You are implementing an ASP.NET application that includes a page named TestPage.aspx. TestPag...

3、You are implementing 

You are implementing an ASP.NET Web site that will be accessed by an international&#819...

4、You are implementing 

You are implementing an ASP.NET application that includes a page named TestPage.aspx. TestPag...

5、You are implementing 

You are implementing an ASP.NET page that hosts a user control named CachedControl. You...

6、You are implementing 

You are implementing an ASP. NET MVC 2 Web application. You add a controller name...