ערוך

שתף באמצעות


ServiceControllerPermission Constructors

Definition

Initializes a new instance of the ServiceControllerPermission class.

Overloads

ServiceControllerPermission()

Initializes a new instance of the ServiceControllerPermission class.

ServiceControllerPermission(PermissionState)

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

ServiceControllerPermission(ServiceControllerPermissionEntry[])

Initializes a new instance of the ServiceControllerPermission class with the specified permission entries.

ServiceControllerPermission(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.

ServiceControllerPermission()

Source:
ServiceControllerPermission.cs
Source:
ServiceControllerPermission.cs
Source:
ServiceControllerPermission.cs
Source:
ServiceControllerPermission.cs

Initializes a new instance of the ServiceControllerPermission class.

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

Applies to

ServiceControllerPermission(PermissionState)

Source:
ServiceControllerPermission.cs
Source:
ServiceControllerPermission.cs
Source:
ServiceControllerPermission.cs
Source:
ServiceControllerPermission.cs

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

public:
 ServiceControllerPermission(System::Security::Permissions::PermissionState state);
public ServiceControllerPermission (System.Security.Permissions.PermissionState state);
new System.ServiceProcess.ServiceControllerPermission : System.Security.Permissions.PermissionState -> System.ServiceProcess.ServiceControllerPermission
Public Sub New (state As PermissionState)

Parameters

state
PermissionState

One of the PermissionState values.

Exceptions

The state parameter is not a valid value of PermissionState.

See also

Applies to

ServiceControllerPermission(ServiceControllerPermissionEntry[])

Source:
ServiceControllerPermission.cs
Source:
ServiceControllerPermission.cs
Source:
ServiceControllerPermission.cs
Source:
ServiceControllerPermission.cs

Initializes a new instance of the ServiceControllerPermission class with the specified permission entries.

public:
 ServiceControllerPermission(cli::array <System::ServiceProcess::ServiceControllerPermissionEntry ^> ^ permissionAccessEntries);
public ServiceControllerPermission (System.ServiceProcess.ServiceControllerPermissionEntry[] permissionAccessEntries);
new System.ServiceProcess.ServiceControllerPermission : System.ServiceProcess.ServiceControllerPermissionEntry[] -> System.ServiceProcess.ServiceControllerPermission
Public Sub New (permissionAccessEntries As ServiceControllerPermissionEntry())

Parameters

permissionAccessEntries
ServiceControllerPermissionEntry[]

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

Exceptions

permissionAccessEntries is null.

Applies to

ServiceControllerPermission(ServiceControllerPermissionAccess, String, String)

Source:
ServiceControllerPermission.cs
Source:
ServiceControllerPermission.cs
Source:
ServiceControllerPermission.cs
Source:
ServiceControllerPermission.cs

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.

public:
 ServiceControllerPermission(System::ServiceProcess::ServiceControllerPermissionAccess permissionAccess, System::String ^ machineName, System::String ^ serviceName);
public ServiceControllerPermission (System.ServiceProcess.ServiceControllerPermissionAccess permissionAccess, string machineName, string serviceName);
new System.ServiceProcess.ServiceControllerPermission : System.ServiceProcess.ServiceControllerPermissionAccess * string * string -> System.ServiceProcess.ServiceControllerPermission
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.

Applies to