Valoda

Process.WaitForExitStatus Method

Definition

Waits indefinitely for the process to exit.

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

Returns

The exit status of the process.

Attributes

Exceptions

There is no process associated with this object, or the process handle or exit status is unavailable.

The process object has been disposed.

The process is on a remote computer.

The current platform is not supported, or, on Unix, the process is not a child process.

Remarks

On Unix, obtaining the exit status is supported only for child processes.

Applies to