微软MCAD 70-310 实战百题
题目内容

You develop an application named myApp. This application needs to run on the same computer as a Windows service named myService.You want to ensure that myService starts from myApp if myService is not already running.Which code segment should you use?

2021-12-25

A.Dim myServiceController As New ServiceController("myService")If myServiceController.Status = _ServiceControllerStatus.Stopped Then myServiceController.Start()End If

B.Dim myServiceController As New _ServiceController("myService") myServiceController.Start ()C . Dim myArgs(1) As StringmyArgs(0)="myService"Dim myServiceController As New _ServiceController ()If myServiceController.Status = ServiceControllerStatus. Stopped _Then myServiceController.Start(myArgs)End IfD. Dim myArgs(0) As String myArgs(0)= "myService"Dim myServiceController As New _ServiceController ()myServiceController . Start (rnyArgs)

题目答案

试卷相关题目

最新试卷
热门试卷

长理培训客户端 资讯,试题,视频一手掌握

去 App Store 免费下载 iOS 客户端