ServiceBase.ExitCode 屬性

定義

取得或設定服務的結束代碼 (Exit Code)。

public:
 property int ExitCode { int get(); void set(int value); };
public int ExitCode { get; set; }
[System.Runtime.InteropServices.ComVisible(false)]
public int ExitCode { get; set; }
member this.ExitCode : int with get, set
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.ExitCode : int with get, set
Public Property ExitCode As Integer

屬性值

服務的結束代碼。

屬性

備註

在停止服務之前,將 ExitCode 屬性設定為非零值,以指示服務控制管理員發生錯誤。

適用於