This documentation is archived and is not being maintained.
ServiceStartMode Enumeration
.NET Framework 1.1
Indicates the start mode of the service.
[Visual Basic] <Serializable> Public Enum ServiceStartMode [C#] [Serializable] public enum ServiceStartMode [C++] [Serializable] __value public enum ServiceStartMode [JScript] public Serializable enum ServiceStartMode
Remarks
The ServiceStartMode is used by the service installer to indicate whether the new service should be disabled at system startup, whether the system should start the service automatically at system startup, or whether the service should be started manually by a user or application.
Members
| Member name | Description |
|---|---|
| Automatic | Indicates that the service is to be started (or was started) by the operating system, at system start-up. If an automatically started service depends on a manually started service, the manually started service is also started automatically at system startup. |
| Disabled | Indicates that the service is disabled, so that it cannot be started by a user or application. |
| Manual | Indicates that the service is started only manually, by a user (using the Service Control Manager) or by an application. |
Requirements
Namespace: System.ServiceProcess
Platforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System.Serviceprocess (in System.Serviceprocess.dll)
See Also
System.ServiceProcess Namespace | ServiceInstaller.StartType | ServiceInstaller
Show: