ServiceBase::ExitCode Property
.NET Framework (current version)
Gets or sets the exit code for the service.
Assembly: System.ServiceProcess (in System.ServiceProcess.dll)
public: [ComVisibleAttribute(false)] property int ExitCode { int get(); void set(int value); }
Set the ExitCode property to a non-zero value before stopping the service to indicate an error to the Service Control Manager.
.NET Framework
Available since 2.0
Available since 2.0
Show: