皮皮学,免费搜题
登录
搜题
【单选题】
You work as an application developer at Certkiller .com. You have been given the task of developing a Windows service application that regularly monitors other Windows services on the same computer. This Windows service application must also log any abnormal file system activity. You have added the following class to the Windows service application: public class EnumerateService : ServiceBase { public static EnumerateService () { this.ServiceName = "Enumerate Service"; this.CanStop = true; } protected override void OnStart (string[] args) { // Enumerate all services and initialize the FileSystemWatcher } protected override void OnStop () { // Stop the FileSystemWatcher and perform cleanup } public static void Main () { EnumerateService service = new EnumerateService(); } } You then create the installer for the Windows service application, and install the Windows service application. You have configured the Windows service Startup type to Automatic, and rebooted the system. You then test the new Windows service application, and find that it is not working.You need to ensure that the service is working properly. What should you do?()
A.
Override the OnBoot method instead of the OnStart method.
B.
Replace the Main method code with the following code: EnumerateService service = new EnumerateService (); Service.Run ();
C.
Override the OnLoad method instead of the OnStart method.
D.
Replace the Main method code with the following code: EnumerateService service = new EnumerateService (); Run (service);
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【判断题】在造成旅游者滞留的情况下,旅行社应当采取相应的安置措施,因此增加的返程 费用,由旅行社承担。( )
A.
正确
B.
错误
【单选题】下列关于Thread类中sleep()方法的描述,错误的是(
A.
sleep()可以指定线程休眠的时间
B.
、 sleep()方法指定时间结束后,线程进入了运行状态
C.
sleep()是一个静态方法
D.
调用sleep()方法,线程进入阻塞状态
【判断题】投资者投入企业的资本全部是企业的实收资本( )
A.
正确
B.
错误
【判断题】静力触探试验适用于软土、一般黏性土、粉土、砂土和含有少量碎石的土
A.
正确
B.
错误
【单选题】“一带一路”倡议提出以来,得到了国际社会的广泛理解、认同、支持和参与,5年来,已有( )国家和国际组织同中国签署合作协议。“一带一路”的朋友圈越来越广。
A.
130多个
B.
140多个
C.
150多个
D.
160多个
【单选题】“一带一路”倡议5年来,得到了国际社会的广泛理解、认同、支持和参与,已有( )多个国家和国际组织同中国签署合作协议。“一带一路”的朋友圈越来越广。
A.
160
B.
140
C.
100
D.
180
【简答题】市场营销观念的发展经历了哪几个阶段?各阶段有哪些特点?
【简答题】Once, a medical student had to read a textbook which was far too expensive for him to buy. ( Passage One)
【单选题】Why does the professor say this:
A.
The students can read the details in the textbook.
B.
The professor wants the students to concentrate on listening.
C.
The facts are probably already familiar to most of the class.
D.
This lecture is a review of material from a previous session.
【单选题】The child couldn't comprehend the advanced textbook.
A.
interpret
B.
read
C.
understand
D.
translate
相关题目: