What should you do?

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You are developing an application that will be used to connect and control the behavior of existing services installed on a network server named Certkiller -SR01.
What should you do?

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You are developing an application that will be used to connect and control the behavior of existing services installed on a network server named Certkiller -SR01.
What should you do?

A.
Use the MachineName and ServiceName properties of the ServiceController class.

B.
Use the Site property of the ServiceController class.

C.
Use the Site property of the ServiceInstaller class.

D.
Use the ServiceName and DisplayName properties of the ServiceInstaller class.

Explanation:
The proper way to connect and control the behavior of existing services is by using the ServiceController class after which you are required to set two properties on it to identify the service to interact with. The MachineName property is used to define the computer Certkiller -SR01.
Incorrect Answers:
B, C: The Site property of the ServiceController and ServiceInstaller class should not be used because they bind a component to a container and enables communication between them.
D: This property should not be used as it is meant to specify the name of the service at the time of installation. The DisplayName property is used to specify the friendly name of the service at the time of installation.



Leave a Reply 1

Your email address will not be published. Required fields are marked *