ServiceControllerPermission Constructor (PermissionState)

 

Initializes a new instance of the ServiceControllerPermission class with the specified access to resources.

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

public ServiceControllerPermission(
	PermissionState state
)

Parameters

state
Type: System.Security.Permissions.PermissionState

One of the PermissionState values.

Exception Condition
ArgumentException

The state parameter is not a valid value of PermissionState.

.NET Framework
Available since 1.1
Return to top
Show: