IServiceManager.

GetService(string, string) Method

Summary

Gets the System.ServiceProcess.ServiceController that is associated with an existing service on the specified computer.
Assembly
Cake.Services.dll
Namespace
Cake.Services
Containing Type
IServiceManager

Syntax

ServiceController GetService(string name, string computer = "")

Parameters

Name Type Description
name string The name that identifies the service to the system.
computer string The computer on which the service resides.

Return Value

Type Description
ServiceController The System.ServiceProcess.ServiceController that is associated with an existing service on the specified computer.