ServiceControllerPermission Constructor (ServiceControllerPermissionAccess, String, String)

 
System_CAPS_noteNote

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

Initializes a new instance of the ServiceControllerPermission class with the specified permission access levels, the name of the computer on which the service resides, and the short name that identifies the service to the system.

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

public ServiceControllerPermission(
	ServiceControllerPermissionAccess permissionAccess,
	string machineName,
	string serviceName
)

Parameters

permissionAccess
Type: System.ServiceProcess.ServiceControllerPermissionAccess

One of the ServiceControllerPermissionAccess values.

machineName
Type: System.String

The name of the computer on which the service resides.

serviceName
Type: System.String

The short name that identifies the service to the system.

.NET Framework
Available since 1.1
Return to top
Show: