ServiceInstaller.StartType Vlastnost

Definice

Určuje, jak a kdy je tato služba spuštěna.

public:
 property System::ServiceProcess::ServiceStartMode StartType { System::ServiceProcess::ServiceStartMode get(); void set(System::ServiceProcess::ServiceStartMode value); };
public System.ServiceProcess.ServiceStartMode StartType { get; set; }
[System.ServiceProcess.ServiceProcessDescription("ServiceInstallerStartType")]
public System.ServiceProcess.ServiceStartMode StartType { get; set; }
member this.StartType : System.ServiceProcess.ServiceStartMode with get, set
[<System.ServiceProcess.ServiceProcessDescription("ServiceInstallerStartType")>]
member this.StartType : System.ServiceProcess.ServiceStartMode with get, set
Public Property StartType As ServiceStartMode

Hodnota vlastnosti

A ServiceStartMode , který představuje způsob, jakým je služba spuštěna. Výchozí hodnota je Manual, která určuje, že se služba po restartování automaticky nespustí.

Atributy

Výjimky

Režim spuštění není hodnotou výčtu ServiceStartMode .

Poznámky

StartType Nastavte, aby byla služba spuštěna automaticky po restartování nebo že uživatel musí službu spustit ručně. Službu lze také zakázat a určit, že ji nelze spustit ručně nebo programově, dokud nebude povolena.

Po instalaci nelze změnit ServiceInstaller hodnoty vlastností. Pokud chcete změnit StartTypenastavení , musíte buď odinstalovat a přeinstalovat službu, nebo ručně změnit nastavení pomocí Správce řízení služeb.

Platí pro

Viz také