Dela via


WebHostService.OnStart(String[]) Method

Definition

When implemented in a derived class, executes when a Start command is sent to the service by the Service Control Manager (SCM) or when the operating system starts (for a service that starts automatically). Specifies actions to take when the service starts.

protected:
 override void OnStart(cli::array <System::String ^> ^ args);
protected override sealed void OnStart (string[] args);
override this.OnStart : string[] -> unit
Protected Overrides NotOverridable Sub OnStart (args As String())

Parameters

args
String[]

Applies to