NAnt SDK Documentation - v0.92

ServiceControllerTask.ServiceName Property

The name of the service that should be controlled.

[Visual Basic]
<TaskAttribute(Required:=True, Name:="service", ExpandProperties:=True, ProcessXml:=True), _  StringValidator(AllowEmpty:=False, Expression:="null", ExpressionErrorMessage:="null")>
Public Property ServiceName As String
[C#]
[TaskAttribute(Required=True, Name="service", ExpandProperties=True, ProcessXml=True)]
[StringValidator(AllowEmpty=False, Expression="null", ExpressionErrorMessage="null")]
public string ServiceName {get; set;}

See Also

ServiceControllerTask Class | NAnt.MSNet.Tasks Namespace