TaskExtensions.DispatcherOperationWait 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
기본 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값입니다.
반품
예외
는 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
대기할 시간입니다.
반품
예외
는 Task .와 연결되어 DispatcherOperation있지 않습니다.
설명
메서드를 IsDispatcherOperationTask 호출하여 이 메서드를 Task 호출하기 전에 메서드와 DispatcherOperation 연결되어 있는지 확인합니다.