Summary
Gets the friendly name of the specified service.
- Assembly
- NAnt
.Contrib .dll - Namespace
- NAnt
.Contrib .Functions - Containing Type
- ServiceFunctions
Syntax
[Function("get-display-name")]
public static string GetDisplayName(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 friendly name of the service, which can be used to identify the service. |
