Sprache

Process.WaitForExitStatus Methode

Definition

Wartet auf unbestimmte Zeit, bis der Vorgang beendet wird.

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

Gibt zurück

Der Beendigungsstatus des Prozesses.

Attribute

Ausnahmen

Diesem Objekt ist kein Prozess zugeordnet, oder der Prozesshandle oder der Beendigungsstatus ist nicht verfügbar.

Das Prozessobjekt wurde verworfen.

Der Prozess befindet sich auf einem Remotecomputer.

Die aktuelle Plattform wird nicht unterstützt, oder auf Unix ist der Prozess kein untergeordneter Prozess.

Hinweise

Unter Unix wird das Abrufen des Ausgangsstatus nur für untergeordnete Prozesse unterstützt.

Gilt für: