Summary
Returns a value indicating whether the specified service is stopped.
Syntax
[Function("is-stopped")]
public static bool IsStopped(string service, string machineName)
For the machineName parameter, you can use "." or a zero-length
string to represent the local computer.
Attributes
| Type |
Description |
| Function |
|
Parameters
| Name |
Type |
Description |
| service |
string |
The short name that identifies the service to the system. |
| machineName |
string |
The computer on which the service resides. |
Return Value
| Type |
Description |
| bool |
true if the service is stopped; otherwise,
false.
|