ServiceControllerPermissionAttribute.ServiceName Property

 

Gets or sets the short name that identifies the service to the system.

Namespace:   System.ServiceProcess
Assembly:  System.ServiceProcess (in System.ServiceProcess.dll)

public string ServiceName { get; set; }

Property Value

Type: System.String

The name of the service.

Exception Condition
ArgumentNullException

The ServiceName is null.

ArgumentException

The syntax of the ServiceName property is invalid.

.NET Framework
Available since 1.1
Return to top
Show: