ServiceControllerPermissionAttribute::MachineName Property
.NET Framework (current version)
Gets or sets the name of the computer on which the service resides.
Assembly: System.ServiceProcess (in System.ServiceProcess.dll)
Property Value
Type: System::String^The name of the computer that is running the service associated with the ServiceController.
| Exception | Condition |
|---|---|
| ArgumentException | The MachineName syntax is invalid. |
.NET Framework
Available since 1.1
Available since 1.1
Show: