Taal

Process.WaitForExitStatus Methode

Definitie

Wacht voor onbepaalde tijd totdat het proces is afgesloten.

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

Retouren

De afsluitstatus van het proces.

Kenmerken

Uitzonderingen

Er is geen proces gekoppeld aan dit object of de procesgreep of afsluitstatus is niet beschikbaar.

Het procesobject is verwijderd.

Het proces bevindt zich op een externe computer.

Het huidige platform wordt niet ondersteund of op Unix is het proces geen onderliggend proces.

Opmerkingen

Op Unix wordt het verkrijgen van de afsluitstatus alleen ondersteund voor onderliggende processen.

Van toepassing op