ServiceController.StartType 属性

定义

获取一个值,该值指示 ServiceController 对象表示的服务是如何启动的。Gets a value that indicates how the service represented by the ServiceController object starts.

public:
 property System::ServiceProcess::ServiceStartMode StartType { System::ServiceProcess::ServiceStartMode get(); };
public System.ServiceProcess.ServiceStartMode StartType { get; }
[System.ServiceProcess.ServiceProcessDescription("SPStartType")]
public System.ServiceProcess.ServiceStartMode StartType { get; }
member this.StartType : System.ServiceProcess.ServiceStartMode
[<System.ServiceProcess.ServiceProcessDescription("SPStartType")>]
member this.StartType : System.ServiceProcess.ServiceStartMode
Public ReadOnly Property StartType As ServiceStartMode

属性值

ServiceStartMode

一个值,指示该服务的启动方式。A value that indicates how the service starts.

属性

例外

访问 API 时出错。An error occurred when accessing a system API.

适用于

另请参阅