TaskExtensions.DispatcherOperationWait TaskExtensions.DispatcherOperationWait TaskExtensions.DispatcherOperationWait TaskExtensions.DispatcherOperationWait Method

정의

기본 DispatcherOperation이 완료되기를 기다립니다.Waits for the underlying DispatcherOperation to complete.

오버로드

DispatcherOperationWait(Task) DispatcherOperationWait(Task) DispatcherOperationWait(Task) DispatcherOperationWait(Task)

기본 DispatcherOperation이 완료되기를 무기한 기다립니다.Waits indefinitely for the underlying DispatcherOperation to complete.

DispatcherOperationWait(Task, TimeSpan) DispatcherOperationWait(Task, TimeSpan) DispatcherOperationWait(Task, TimeSpan) DispatcherOperationWait(Task, TimeSpan)

그런 다음 지정된 시간 동안 기본 DispatcherOperation이 완료되기를 기다립니다.Waits for the specified amount of time for the underlying DispatcherOperation to complete.

DispatcherOperationWait(Task) DispatcherOperationWait(Task) DispatcherOperationWait(Task) DispatcherOperationWait(Task)

기본 DispatcherOperation이 완료되기를 무기한 기다립니다.Waits indefinitely for the underlying DispatcherOperation to complete.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Windows::Threading::DispatcherOperationStatus DispatcherOperationWait(System::Threading::Tasks::Task ^ this);
public static System.Windows.Threading.DispatcherOperationStatus DispatcherOperationWait (this System.Threading.Tasks.Task this);
static member DispatcherOperationWait :  -> System.Windows.Threading.DispatcherOperationStatus
<Extension()>
Public Function DispatcherOperationWait (this As Task) As DispatcherOperationStatus

매개 변수

this
Task Task Task Task

Task과 연결된 DispatcherOperation입니다.The Task that is associated with the DispatcherOperation.

반환

예외

설명

호출을 IsDispatcherOperationTask 확인 하는 메서드 있는지 여부를 Task 연관 된를 DispatcherOperation 이 메서드를 호출 하기 전에 합니다.Call the IsDispatcherOperationTask method to check whether the Task is associated with a DispatcherOperation before you call this method.

DispatcherOperationWait(Task, TimeSpan) DispatcherOperationWait(Task, TimeSpan) DispatcherOperationWait(Task, TimeSpan) DispatcherOperationWait(Task, TimeSpan)

그런 다음 지정된 시간 동안 기본 DispatcherOperation이 완료되기를 기다립니다.Waits for the specified amount of time for the underlying DispatcherOperation to complete.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Windows::Threading::DispatcherOperationStatus DispatcherOperationWait(System::Threading::Tasks::Task ^ this, TimeSpan timeout);
public static System.Windows.Threading.DispatcherOperationStatus DispatcherOperationWait (this System.Threading.Tasks.Task this, TimeSpan timeout);
static member DispatcherOperationWait : TimeSpan -> System.Windows.Threading.DispatcherOperationStatus
<Extension()>
Public Function DispatcherOperationWait (this As Task, timeout As TimeSpan) As DispatcherOperationStatus

매개 변수

this
Task Task Task Task

Task과 연결된 DispatcherOperation입니다.The Task that is associated with the DispatcherOperation.

timeout
TimeSpan TimeSpan TimeSpan TimeSpan

대기할 시간입니다.The amount of time to wait.

반환

예외

설명

호출을 IsDispatcherOperationTask 확인 하는 메서드 있는지 여부를 Task 연관 된를 DispatcherOperation 이 메서드를 호출 하기 전에 합니다.Call the IsDispatcherOperationTask method to check whether the Task is associated with a DispatcherOperation before you call this method.

적용 대상