This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Services.
Summary
Gets the
System.ServiceProcess.ServiceControllerStatus
status of a service on the specified computer.
- Assembly
- Cake
.Services .dll - Namespace
- Cake
.Services - Containing Type
- ServiceManager
Syntax
public ServiceControllerStatus GetStatus(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 |
---|---|
Service |
The System.ServiceProcess.ServiceControllerStatus status of a service on the specified computer. |