Summary
Allow information on a Windows service to be retrieved.
- Assembly
- NAnt
.Contrib .dll - Namespace
- NAnt
.Contrib .Functions - Base Types
-
- FunctionSetBase
graph BT
Type-->Base0["FunctionSetBase"]
Type["ServiceFunctions"]
class Type type-node
Syntax
[FunctionSet("service", "Windows Service")]
public class ServiceFunctions : FunctionSetBase
Attributes
Type | Description |
---|---|
FunctionSet |
Constructors
Name | Summary |
---|---|
ServiceFunctions |
Methods
Name | Value | Summary |
---|---|---|
GetDisplayName |
string |
Gets the friendly name of the specified service.
static
|
GetServiceName |
string |
Gets the name that identifies the specified service
static
|
GetStatus |
Service |
Gets the status of the specified service.
static
|
IsInstalled |
bool |
Returns a value indicating whether the specified service is
installed on a given machine.
static
|
IsPaused |
bool |
Returns a value indicating whether the specified service is paused.
static
|
IsRunning |
bool |
Returns a value indicating whether the specified service is running.
static
|
IsStopped |
bool |
Returns a value indicating whether the specified service is stopped.
static
|