https://learn.microsoft.com/ja-jp/dotnet/api/system.diagnostics.process.hasexited?view=netframework-4.8.1&viewFallbackFrom=net-10.0
Process.HasExited Property (System.Diagnostics) | Microsoft Learn
Gets a value indicating whether the associated process has been terminated.
property systemprocessdiagnosticsmicrosoftlearn