Export (0) Print
Expand All

ServiceControllerPermission Constructor (ServiceControllerPermissionAccess, String, String)

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft