ServiceInstaller.ServicesDependedOn Property
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.
Indicates the services that must be running for this service to run.
public:
property cli::array <System::String ^> ^ ServicesDependedOn { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
public string[] ServicesDependedOn { get; set; }
[System.ServiceProcess.ServiceProcessDescription("ServiceInstallerServicesDependedOn")]
public string[] ServicesDependedOn { get; set; }
member this.ServicesDependedOn : string[] with get, set
[<System.ServiceProcess.ServiceProcessDescription("ServiceInstallerServicesDependedOn")>]
member this.ServicesDependedOn : string[] with get, set
Public Property ServicesDependedOn As String()
Property Value
An array of services that must be running before the service associated with this installer can run.
- Attributes
Remarks
A service can require other services to be running before it can start. The information from this property is written to a key in the registry. When the user (or the system, in the case of automatic startup) tries to run the service, the Service Control Manager (SCM) verifies that each of the services in the array has already been started.
If any service in the array is not running then, the SCM tries to start them. This includes services with Manual
StartType.
If any service upon which this service depends fails to start, this service will not start. An exception is not thrown if the system is not started because there is no exception handling at the system level to detect this. Decide how to handle service start failures and implement this in your code. Typically, a dialog appears to the user at startup if a service fails to start.
If the service does not start, an entry is written to the Application event log.
The services upon which this service depends do not need to be in the same executable.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기