ServiceControllerPermissionEntry Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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()
Initializes a new instance of the ServiceControllerPermissionEntry class.
public:
ServiceControllerPermissionEntry();
public ServiceControllerPermissionEntry ();
Public Sub New ()
Applies to
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.
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
- permissionAccess
- ServiceControllerPermissionAccess
One of the ServiceControllerPermissionAccess values.
- 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
.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om