WindowsServiceLifetime.OnStart(String[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 void OnStart (string[] args);
override this.OnStart : string[] -> unit
Protected Overrides Sub OnStart (args As String())
Parameters
- args
- String[]
Data passed by the start command.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.