ServiceController::Start Method (array<String^>^)
.NET Framework (current version)
Starts a service, passing the specified arguments.
Assembly: System.ServiceProcess (in System.ServiceProcess.dll)
Parameters
- args
-
Type:
array<System::String^>^
An array of arguments to pass to the service when it starts.
| Exception | Condition |
|---|---|
| Win32Exception | An error occurred when accessing a system API. |
| InvalidOperationException | The service cannot be started. |
| ArgumentNullException | args is null. -or- A member of the array is null. |
ServiceControllerPermissionSecurityPermission
for controlling services on the computer. Associated enumeration: ServiceControllerPermissionAccess::Control
for unrestricted access to service information. Associated enumeration: PermissionState::Unrestricted
.NET Framework
Available since 1.1
Available since 1.1
Show: