ServiceFunctions.

GetServiceName(string, string) Method

Summary

Gets the name that identifies the specified service
Assembly
NAnt.Contrib.dll
Namespace
NAnt.Contrib.Functions
Containing Type
ServiceFunctions

Syntax

[Function("get-service-name")]
public static string GetServiceName(string service, string machineName)

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
string The name that identifies the service.