Dispatcher.InvokeAsync Dispatcher.InvokeAsync Dispatcher.InvokeAsync Dispatcher.InvokeAsync Method

정의

Dispatcher가 연결된 스레드에서 지정된 대리자를 비동기적으로 실행합니다.Executes the specified delegate asynchronously on the thread the Dispatcher is associated with.

오버로드

InvokeAsync(Action) InvokeAsync(Action) InvokeAsync(Action) InvokeAsync(Action)

Action가 연결된 스레드에서 지정된 Dispatcher를 비동기적으로 실행합니다.Executes the specified Action asynchronously on the thread the Dispatcher is associated with.

InvokeAsync(Action, DispatcherPriority) InvokeAsync(Action, DispatcherPriority) InvokeAsync(Action, DispatcherPriority) InvokeAsync(Action, DispatcherPriority)

Action가 연결된 스레드에서 지정된 우선 순위에 있는 지정된 Dispatcher를 비동기적으로 실행합니다.Executes the specified Action asynchronously at the specified priority on the thread the Dispatcher is associated with.

InvokeAsync(Action, DispatcherPriority, CancellationToken) InvokeAsync(Action, DispatcherPriority, CancellationToken) InvokeAsync(Action, DispatcherPriority, CancellationToken)

Action가 연결된 스레드에서 지정된 우선 순위에 있는 지정된 Dispatcher를 비동기적으로 실행합니다.Executes the specified Action asynchronously at the specified priority on the thread the Dispatcher is associated with.

InvokeAsync<TResult>(Func<TResult>, DispatcherPriority, CancellationToken) InvokeAsync<TResult>(Func<TResult>, DispatcherPriority, CancellationToken) InvokeAsync<TResult>(Func<TResult>, DispatcherPriority, CancellationToken)

Func<TResult>가 연결된 스레드에서 지정된 우선 순위에 있는 지정된 Dispatcher를 비동기적으로 실행합니다.Executes the specified Func<TResult> asynchronously at the specified priority on the thread the Dispatcher is associated with.

InvokeAsync<TResult>(Func<TResult>) InvokeAsync<TResult>(Func<TResult>) InvokeAsync<TResult>(Func<TResult>) InvokeAsync<TResult>(Func<TResult>)

Func<TResult>가 연결된 스레드에서 지정된 Dispatcher를 비동기적으로 실행합니다.Executes the specified Func<TResult> asynchronously on the thread the Dispatcher is associated with.

InvokeAsync<TResult>(Func<TResult>, DispatcherPriority) InvokeAsync<TResult>(Func<TResult>, DispatcherPriority) InvokeAsync<TResult>(Func<TResult>, DispatcherPriority) InvokeAsync<TResult>(Func<TResult>, DispatcherPriority)

Func<TResult>가 연결된 스레드에서 지정된 우선 순위에 있는 지정된 Dispatcher를 비동기적으로 실행합니다.Executes the specified Func<TResult> asynchronously at the specified priority on the thread the Dispatcher is associated with.

InvokeAsync(Action) InvokeAsync(Action) InvokeAsync(Action) InvokeAsync(Action)

Action가 연결된 스레드에서 지정된 Dispatcher를 비동기적으로 실행합니다.Executes the specified Action asynchronously on the thread the Dispatcher is associated with.

public:
 System::Windows::Threading::DispatcherOperation ^ InvokeAsync(Action ^ callback);
public System.Windows.Threading.DispatcherOperation InvokeAsync (Action callback);
member this.InvokeAsync : Action -> System.Windows.Threading.DispatcherOperation
Public Function InvokeAsync (callback As Action) As DispatcherOperation

매개 변수

callback
Action Action Action Action

디스패처를 통해 호출할 대리자입니다.A delegate to invoke through the dispatcher.

반환

InvokeAsync(Action)가 호출된 후 즉시 반환되며, 이벤트 큐에서 실행 보류 중일 때 대리자와 상호 작용하는 데 사용할 수 있는 개체입니다.An object, which is returned immediately after InvokeAsync(Action) is called, that can be used to interact with the delegate as it is pending execution in the event queue.

InvokeAsync(Action, DispatcherPriority) InvokeAsync(Action, DispatcherPriority) InvokeAsync(Action, DispatcherPriority) InvokeAsync(Action, DispatcherPriority)

Action가 연결된 스레드에서 지정된 우선 순위에 있는 지정된 Dispatcher를 비동기적으로 실행합니다.Executes the specified Action asynchronously at the specified priority on the thread the Dispatcher is associated with.

public:
 System::Windows::Threading::DispatcherOperation ^ InvokeAsync(Action ^ callback, System::Windows::Threading::DispatcherPriority priority);
public System.Windows.Threading.DispatcherOperation InvokeAsync (Action callback, System.Windows.Threading.DispatcherPriority priority);
member this.InvokeAsync : Action * System.Windows.Threading.DispatcherPriority -> System.Windows.Threading.DispatcherOperation
Public Function InvokeAsync (callback As Action, priority As DispatcherPriority) As DispatcherOperation

매개 변수

callback
Action Action Action Action

디스패처를 통해 호출할 대리자입니다.A delegate to invoke through the dispatcher.

priority
DispatcherPriority DispatcherPriority DispatcherPriority DispatcherPriority

Dispatcher에서 보류 중인 다른 작업에 맞춰 어떤 순서로 지정된 콜백을 호출할지를 결정하는 우선 순위입니다.The priority that determines in what order the specified callback is invoked relative to the other pending operations in the Dispatcher.

반환

InvokeAsync(Action, DispatcherPriority)가 호출된 후 즉시 반환되며, 이벤트 큐에서 실행 보류 중일 때 대리자와 상호 작용하는 데 사용할 수 있는 개체입니다.An object, which is returned immediately after InvokeAsync(Action, DispatcherPriority) is called, that can be used to interact with the delegate as it is pending execution in the event queue.

InvokeAsync(Action, DispatcherPriority, CancellationToken) InvokeAsync(Action, DispatcherPriority, CancellationToken) InvokeAsync(Action, DispatcherPriority, CancellationToken)

Action가 연결된 스레드에서 지정된 우선 순위에 있는 지정된 Dispatcher를 비동기적으로 실행합니다.Executes the specified Action asynchronously at the specified priority on the thread the Dispatcher is associated with.

public:
 System::Windows::Threading::DispatcherOperation ^ InvokeAsync(Action ^ callback, System::Windows::Threading::DispatcherPriority priority, System::Threading::CancellationToken cancellationToken);
public System.Windows.Threading.DispatcherOperation InvokeAsync (Action callback, System.Windows.Threading.DispatcherPriority priority, System.Threading.CancellationToken cancellationToken);
member this.InvokeAsync : Action * System.Windows.Threading.DispatcherPriority * System.Threading.CancellationToken -> System.Windows.Threading.DispatcherOperation

매개 변수

callback
Action Action Action Action

디스패처를 통해 호출할 대리자입니다.A delegate to invoke through the dispatcher.

priority
DispatcherPriority DispatcherPriority DispatcherPriority DispatcherPriority

Dispatcher에서 보류 중인 다른 작업에 맞춰 어떤 순서로 지정된 콜백을 호출할지를 결정하는 우선 순위입니다.The priority that determines in what order the specified callback is invoked relative to the other pending operations in the Dispatcher.

cancellationToken
CancellationToken CancellationToken CancellationToken CancellationToken

동작을 취소할지 여부를 나타내는 개체입니다.An object that indicates whether to cancel the action.

반환

InvokeAsync(Action, DispatcherPriority, CancellationToken)가 호출된 후 즉시 반환되며, 이벤트 큐에서 실행 보류 중일 때 대리자와 상호 작용하는 데 사용할 수 있는 개체입니다.An object, which is returned immediately after InvokeAsync(Action, DispatcherPriority, CancellationToken) is called, that can be used to interact with the delegate as it is pending execution in the event queue.

InvokeAsync<TResult>(Func<TResult>, DispatcherPriority, CancellationToken) InvokeAsync<TResult>(Func<TResult>, DispatcherPriority, CancellationToken) InvokeAsync<TResult>(Func<TResult>, DispatcherPriority, CancellationToken)

Func<TResult>가 연결된 스레드에서 지정된 우선 순위에 있는 지정된 Dispatcher를 비동기적으로 실행합니다.Executes the specified Func<TResult> asynchronously at the specified priority on the thread the Dispatcher is associated with.

public:
generic <typename TResult>
 System::Windows::Threading::DispatcherOperation<TResult> ^ InvokeAsync(Func<TResult> ^ callback, System::Windows::Threading::DispatcherPriority priority, System::Threading::CancellationToken cancellationToken);
public System.Windows.Threading.DispatcherOperation<TResult> InvokeAsync<TResult> (Func<TResult> callback, System.Windows.Threading.DispatcherPriority priority, System.Threading.CancellationToken cancellationToken);
member this.InvokeAsync : Func<'Result> * System.Windows.Threading.DispatcherPriority * System.Threading.CancellationToken -> System.Windows.Threading.DispatcherOperation<'Result>

형식 매개 변수

TResult

지정된 대리자의 반환 값 형식입니다.The return value type of the specified delegate.

매개 변수

callback
Func<TResult> Func<TResult> Func<TResult> Func<TResult>

디스패처를 통해 호출할 대리자입니다.A delegate to invoke through the dispatcher.

priority
DispatcherPriority DispatcherPriority DispatcherPriority DispatcherPriority

Dispatcher에서 보류 중인 다른 작업에 맞춰 어떤 순서로 지정된 콜백을 호출할지를 결정하는 우선 순위입니다.The priority that determines in what order the specified callback is invoked relative to the other pending operations in the Dispatcher.

cancellationToken
CancellationToken CancellationToken CancellationToken CancellationToken

작업을 취소할지 여부를 나타내는 개체입니다.An object that indicates whether to cancel the operation.

반환

InvokeAsync<TResult>(Func<TResult>, DispatcherPriority, CancellationToken)가 호출된 후 즉시 반환되며, 이벤트 큐에서 실행 보류 중일 때 대리자와 상호 작용하는 데 사용할 수 있는 개체입니다.An object, which is returned immediately after InvokeAsync<TResult>(Func<TResult>, DispatcherPriority, CancellationToken) is called, that can be used to interact with the delegate as it is pending execution in the event queue.

InvokeAsync<TResult>(Func<TResult>) InvokeAsync<TResult>(Func<TResult>) InvokeAsync<TResult>(Func<TResult>) InvokeAsync<TResult>(Func<TResult>)

Func<TResult>가 연결된 스레드에서 지정된 Dispatcher를 비동기적으로 실행합니다.Executes the specified Func<TResult> asynchronously on the thread the Dispatcher is associated with.

public:
generic <typename TResult>
 System::Windows::Threading::DispatcherOperation<TResult> ^ InvokeAsync(Func<TResult> ^ callback);
public System.Windows.Threading.DispatcherOperation<TResult> InvokeAsync<TResult> (Func<TResult> callback);
member this.InvokeAsync : Func<'Result> -> System.Windows.Threading.DispatcherOperation<'Result>
Public Function InvokeAsync(Of TResult) (callback As Func(Of TResult)) As DispatcherOperation(Of TResult)

형식 매개 변수

TResult

지정된 대리자의 반환 값 형식입니다.The return value type of the specified delegate.

매개 변수

callback
Func<TResult> Func<TResult> Func<TResult> Func<TResult>

디스패처를 통해 호출할 대리자입니다.A delegate to invoke through the dispatcher.

반환

InvokeAsync<TResult>(Func<TResult>)가 호출된 후 즉시 반환되며, 이벤트 큐에서 실행 보류 중일 때 대리자와 상호 작용하는 데 사용할 수 있는 개체입니다.An object, which is returned immediately after InvokeAsync<TResult>(Func<TResult>) is called, that can be used to interact with the delegate as it is pending execution in the event queue.

InvokeAsync<TResult>(Func<TResult>, DispatcherPriority) InvokeAsync<TResult>(Func<TResult>, DispatcherPriority) InvokeAsync<TResult>(Func<TResult>, DispatcherPriority) InvokeAsync<TResult>(Func<TResult>, DispatcherPriority)

Func<TResult>가 연결된 스레드에서 지정된 우선 순위에 있는 지정된 Dispatcher를 비동기적으로 실행합니다.Executes the specified Func<TResult> asynchronously at the specified priority on the thread the Dispatcher is associated with.

public:
generic <typename TResult>
 System::Windows::Threading::DispatcherOperation<TResult> ^ InvokeAsync(Func<TResult> ^ callback, System::Windows::Threading::DispatcherPriority priority);
public System.Windows.Threading.DispatcherOperation<TResult> InvokeAsync<TResult> (Func<TResult> callback, System.Windows.Threading.DispatcherPriority priority);
member this.InvokeAsync : Func<'Result> * System.Windows.Threading.DispatcherPriority -> System.Windows.Threading.DispatcherOperation<'Result>
Public Function InvokeAsync(Of TResult) (callback As Func(Of TResult), priority As DispatcherPriority) As DispatcherOperation(Of TResult)

형식 매개 변수

TResult

지정된 대리자의 반환 값 형식입니다.The return value type of the specified delegate.

매개 변수

callback
Func<TResult> Func<TResult> Func<TResult> Func<TResult>

디스패처를 통해 호출할 대리자입니다.A delegate to invoke through the dispatcher.

priority
DispatcherPriority DispatcherPriority DispatcherPriority DispatcherPriority

Dispatcher에서 보류 중인 다른 작업에 맞춰 어떤 순서로 지정된 콜백을 호출할지를 결정하는 우선 순위입니다.The priority that determines in what order the specified callback is invoked relative to the other pending operations in the Dispatcher.

반환

InvokeAsync<TResult>(Func<TResult>, DispatcherPriority)가 호출된 후 즉시 반환되며, 이벤트 큐에서 실행 보류 중일 때 대리자와 상호 작용하는 데 사용할 수 있는 개체입니다.An object, which is returned immediately after InvokeAsync<TResult>(Func<TResult>, DispatcherPriority) is called, that can be used to interact with the delegate as it is pending execution in the event queue.

적용 대상