ServiceController.StartType Property

Definition

Gets a value that indicates how the service represented by the ServiceController object starts.

C#
public System.ServiceProcess.ServiceStartMode StartType { get; }
C#
[System.ServiceProcess.ServiceProcessDescription("SPStartType")]
public System.ServiceProcess.ServiceStartMode StartType { get; }

Property Value

A value that indicates how the service starts.

Attributes

Exceptions

An error occurred when accessing a system API.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

See also