언어

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에서 종료 상태 가져오기는 자식 프로세스에 대해서만 지원됩니다.

적용 대상