ServiceController::StartType Property
Gets a value that indicates how the service represented by the ServiceController object starts.
Assembly: System.ServiceProcess (in System.ServiceProcess.dll)
public: [ServiceProcessDescriptionAttribute("SPStartType")] property ServiceStartMode StartType { ServiceStartMode get(); }
Property Value
Type: System.ServiceProcess::ServiceStartModeA value that indicates how the service starts.
| Exception | Condition |
|---|---|
| Win32Exception | An error occurred when accessing a system API. |
ServiceControllerPermission
for browsing services on the computer. Associated enumeration: ServiceControllerPermissionAccess::Browse.
.NET Framework
Available since 4.6.1
Available since 4.6.1
Show: