ServiceControllerPermissionAttribute.MachineName Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the name of the computer on which the service resides.

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

public string MachineName { get; set; }

Property Value

Type: System.String

The name of the computer that is running the service associated with the ServiceController.

Exception Condition

The MachineName syntax is invalid.

.NET Framework
Available since 1.1
Return to top