This documentation is archived and is not being maintained.

ServiceBase.Run Method

Provides the main entry point for a service executable.

Overload List

Provides the main entry point for an executable that contains a single service. Loads the service into memory so it can be started.

[Visual Basic] Overloads Public Shared Sub Run(ServiceBase)
[C#] public static void Run(ServiceBase);
[C++] public: static void Run(ServiceBase*);
[JScript] public static function Run(ServiceBase);

Provides the main entry point for an executable that contains multiple associated services. Loads the specified services into memory so they can be started.

[Visual Basic] Overloads Public Shared Sub Run(ServiceBase())
[C#] public static void Run(ServiceBase[]);
[C++] public: static void Run(ServiceBase*[]);
[JScript] public static function Run(ServiceBase[]);

See Also

ServiceBase Class | ServiceBase Members | System.ServiceProcess Namespace

Show: