ServiceControllerPermissionAttribute::ServiceName Property
.NET Framework (current version)
Gets or sets the short name that identifies the service to the system.
Assembly: System.ServiceProcess (in System.ServiceProcess.dll)
| Exception | Condition |
|---|---|
| ArgumentNullException | The ServiceName is null. |
| ArgumentException | The syntax of the ServiceName property is invalid. |
.NET Framework
Available since 1.1
Available since 1.1
Show: