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:
property String^ ServiceName {
	String^ get();
	void set(String^ value);
}

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: