Process.WaitForExitStatus メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
プロセスが終了するまで無期限に待機します。
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 では、終了ステータスの取得は子プロセスでのみサポートされます。