ServiceControllerPermission Constructor (ServiceControllerPermissionEntry[])

 
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 entries.

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

public ServiceControllerPermission(
	ServiceControllerPermissionEntry[] permissionAccessEntries
)

Parameters

permissionAccessEntries
Type: System.ServiceProcess.ServiceControllerPermissionEntry[]

An array of ServiceControllerPermissionEntry objects. The PermissionEntries property is set to this value.

Exception Condition
ArgumentNullException

permissionAccessEntries is null.

.NET Framework
Available since 1.1
Return to top
Show: