Επεξεργασία

Κοινή χρήση μέσω


ServiceControllerPermissionEntry Constructors

Definition

Initializes a new instance of the ServiceControllerPermissionEntry class.

Overloads

ServiceControllerPermissionEntry()

Initializes a new instance of the ServiceControllerPermissionEntry class.

ServiceControllerPermissionEntry(ServiceControllerPermissionAccess, String, String)

Initializes a new instance of the ServiceControllerPermissionEntry class with the specified permission access levels, the name of the computer, and a short name that identifies the service.

ServiceControllerPermissionEntry()

Source:
ServiceControllerPermissionEntry.cs
Source:
ServiceControllerPermissionEntry.cs
Source:
ServiceControllerPermissionEntry.cs
Source:
ServiceControllerPermissionEntry.cs

Initializes a new instance of the ServiceControllerPermissionEntry class.

public:
 ServiceControllerPermissionEntry();
public ServiceControllerPermissionEntry ();
Public Sub New ()

Applies to

ServiceControllerPermissionEntry(ServiceControllerPermissionAccess, String, String)

Source:
ServiceControllerPermissionEntry.cs
Source:
ServiceControllerPermissionEntry.cs
Source:
ServiceControllerPermissionEntry.cs
Source:
ServiceControllerPermissionEntry.cs

Initializes a new instance of the ServiceControllerPermissionEntry class with the specified permission access levels, the name of the computer, and a short name that identifies the service.

public:
 ServiceControllerPermissionEntry(System::ServiceProcess::ServiceControllerPermissionAccess permissionAccess, System::String ^ machineName, System::String ^ serviceName);
public ServiceControllerPermissionEntry (System.ServiceProcess.ServiceControllerPermissionAccess permissionAccess, string machineName, string serviceName);
new System.ServiceProcess.ServiceControllerPermissionEntry : System.ServiceProcess.ServiceControllerPermissionAccess * string * string -> System.ServiceProcess.ServiceControllerPermissionEntry
Public Sub New (permissionAccess As ServiceControllerPermissionAccess, machineName As String, serviceName As String)

Parameters

machineName
String

The name of the computer on which the service resides.

serviceName
String

The short name that identifies the service to the system.

Exceptions

serviceName is null.

machineName is not valid.

-or-

serviceName is not valid.

Applies to