ServiceBase.Run Method (ServiceBase)
Registers the executable for multiple services with the Service Control Manager (SCM).
Assembly: System.ServiceProcess (in System.ServiceProcess.dll)
You did not supply a service to start. The array might be null or empty.
Call this overload in the main() function of the service executable to register the services with the Service Control Manager. After you call , the Service Control Manager issues Start commands, which result in calls to the OnStart methods in the services. The services are not started until the Start commands are executed.
If AutoLog is true, an entry is written to the event log if any service in the array fails to start.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.