TaskExtensions.DispatcherOperationWait 메서드

정의

기본 DispatcherOperation 이 완료되기를 기다립니다.

오버로드

Name Description
DispatcherOperationWait(Task)

기본이 완료되기를 무기한 대기합니다 DispatcherOperation .

DispatcherOperationWait(Task, TimeSpan)

기본 DispatcherOperation 이 완료될 때까지 지정된 시간 동안 기다립니다.

DispatcherOperationWait(Task)

기본이 완료되기를 무기한 대기합니다 DispatcherOperation .

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 연결된 DispatcherOperation값입니다.

반품

기본 DispatcherOperation.

예외

Task .와 연결되어 DispatcherOperation있지 않습니다.

설명

메서드를 IsDispatcherOperationTask 호출하여 이 메서드를 Task 호출하기 전에 메서드와 DispatcherOperation 연결되어 있는지 확인합니다.

적용 대상

DispatcherOperationWait(Task, TimeSpan)

기본 DispatcherOperation 이 완료될 때까지 지정된 시간 동안 기다립니다.

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 연결된 DispatcherOperation값입니다.

timeout
TimeSpan

대기할 시간입니다.

반품

기본 DispatcherOperation.

예외

Task .와 연결되어 DispatcherOperation있지 않습니다.

설명

메서드를 IsDispatcherOperationTask 호출하여 이 메서드를 Task 호출하기 전에 메서드와 DispatcherOperation 연결되어 있는지 확인합니다.

적용 대상