service::is-stopped

[This is preliminary documentation and subject to change.]

Returns a value indicating whether the specified service is stopped.

Usage

bool service::is-stopped(service, machineName)

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

true if the service is stopped; otherwise, false.

Remarks

For the machineName parameter, you can use "." or a zero-length String to represent the local computer.

Requirements

Assembly: NAnt.Contrib.Tasks (0.93.5521.0)