ServiceControllerPermissionAttribute::MachineName Property

 

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

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

public:
property String^ MachineName {
	String^ get();
	void set(String^ value);
}

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
Return to top
Show: