DispatcherOperation.Wait 메서드

정의

작업이 완료되기를 기다립니다.

오버로드

Name Description
Wait()

작업이 완료되기를 기다립니다.

Wait(TimeSpan)

지정된 기간 동안 작업이 완료될 때까지 기다립니다.

Wait()

작업이 완료되기를 기다립니다.

public:
 System::Windows::Threading::DispatcherOperationStatus Wait();
public System.Windows.Threading.DispatcherOperationStatus Wait();
member this.Wait : unit -> System.Windows.Threading.DispatcherOperationStatus
Public Function Wait () As DispatcherOperationStatus

반품

작업의 진행 상태입니다.

예외

Status가 같음 Executing 이 문제는 동일한 스레드에서 이미 실행 중인 작업을 대기할 때 발생할 수 있습니다.

설명

호출된 대리자의 반환 값을 가져오려면 속성을 사용합니다 Result .

적용 대상

Wait(TimeSpan)

지정된 기간 동안 작업이 완료될 때까지 기다립니다.

public:
 System::Windows::Threading::DispatcherOperationStatus Wait(TimeSpan timeout);
[System.Security.SecurityCritical]
public System.Windows.Threading.DispatcherOperationStatus Wait(TimeSpan timeout);
public System.Windows.Threading.DispatcherOperationStatus Wait(TimeSpan timeout);
[<System.Security.SecurityCritical>]
member this.Wait : TimeSpan -> System.Windows.Threading.DispatcherOperationStatus
member this.Wait : TimeSpan -> System.Windows.Threading.DispatcherOperationStatus
Public Function Wait (timeout As TimeSpan) As DispatcherOperationStatus

매개 변수

timeout
TimeSpan

대기할 최대 시간입니다.

반품

작업의 진행 상태입니다.

특성

예외

Status가 같음 Executing 이 문제는 동일한 스레드에서 이미 실행 중인 작업을 대기할 때 발생할 수 있습니다.

설명

호출된 대리자의 반환 값을 가져오려면 속성을 사용합니다 Result .

적용 대상