ServiceController::StartType Property

 

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

Namespace:   System.ServiceProcess
Assembly:  System.ServiceProcess (in System.ServiceProcess.dll)

public:
[ServiceProcessDescriptionAttribute("SPStartType")]
property ServiceStartMode StartType {
	ServiceStartMode get();
}

Property Value

Type: System.ServiceProcess::ServiceStartMode

A 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
Return to top
Show: