多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

You create a service application that monitors free space on a hard disk drive.  You must ensure that the service application runs in the background and monitors the free space every minute. What should you do?()

  • A、Add code to the default constructor of the Service class to monitor the free space on the hard disk drive.
  • B、Add code to the OnStart method of the Service class to monitor the free space on the hard disk drive.
  • C、Add an instance of the System.Windows.Forms.Timer class to the Service class and configure it to fire every minute.
  • D、Add an instance of the System.Timers.Timer class to the Service class and configure it to fire every minute.
  • E、Add code to the OnStart method of the Service class to start the timer.
  • F、Add code to the Elapsed event handler of the timer to monitor the free space on the hard disk drive.
  • G、Add code to the Tick event handler of the timer to monitor the free space on the hard disk drive.
正确答案:D,E,F
答案解析:
进入题库查看解析

微信扫一扫手机做题