Språk

Process.WaitForExitStatus Metod

Definition

Väntar på att processen ska avslutas på obestämd tid.

public:
 System::Diagnostics::ProcessExitStatus ^ WaitForExitStatus();
[System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public System.Diagnostics.ProcessExitStatus WaitForExitStatus();
[<System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
member this.WaitForExitStatus : unit -> System.Diagnostics.ProcessExitStatus
Public Function WaitForExitStatus () As ProcessExitStatus

Returer

Processens slutstatus.

Attribut

Undantag

Det finns ingen process som är associerad med det här objektet, eller så är processhandtaget eller avslutsstatusen inte tillgänglig.

Processobjektet har tagits bort.

Processen finns på en fjärrdator.

Den aktuella plattformen stöds inte, eller så är processen i Unix inte en underordnad process.

Kommentarer

I Unix stöds hämtning av utgångsstatus endast för underordnade processer.

Gäller för