ServiceControllerTask.

ServiceName Property

Summary

The name of the service that should be controlled.
Assembly
NAnt.MSNet.dll
Namespace
NAnt.MSNet.Tasks
Containing Type
ServiceControllerTask

Syntax

[TaskAttribute("service", Required = true)]
[StringValidator(AllowEmpty = false)]
public string ServiceName { get; set; }

Attributes

Type Description
TaskAttributeAttribute Indicates that property should be treated as a XML attribute for the task.
StringValidatorAttribute Used to indicate whether a string property should allow an empty string value or not.

Value

Type Description
string