ServiceFunctions Class

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

Methods

Name Value Summary
GetDisplayName(string, string) string
Gets the friendly name of the specified service.
static
GetServiceName(string, string) string
Gets the name that identifies the specified service
static
GetStatus(string, string) ServiceControllerStatus
Gets the status of the specified service.
static
IsInstalled(string, string) bool
Returns a value indicating whether the specified service is installed on a given machine.
static
IsPaused(string, string) bool
Returns a value indicating whether the specified service is paused.
static
IsRunning(string, string) bool
Returns a value indicating whether the specified service is running.
static
IsStopped(string, string) bool
Returns a value indicating whether the specified service is stopped.
static