Language

Process.WaitForExitStatus メソッド

定義

プロセスが終了するまで無期限に待機します。

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

返品

プロセスの終了状態。

属性

例外

このオブジェクトに関連付けられているプロセスがない、またはプロセス ハンドルまたは終了状態が使用できません。

プロセス オブジェクトが破棄されました。

プロセスはリモート コンピューター上にあります。

現在のプラットフォームはサポートされていません。Unix では、プロセスは子プロセスではありません。

注釈

Unix では、終了ステータスの取得は子プロセスでのみサポートされます。

適用対象