DispatcherExtensions.Invoke DispatcherExtensions.Invoke DispatcherExtensions.Invoke Method

정의

지정된 Dispatcher가 만들어진 스레드에서 지정된 대리자를 동기적으로 실행합니다.Executes the specified delegate synchronously on the thread that the specified Dispatcher was created on.

오버로드

Invoke(Dispatcher, Action) Invoke(Dispatcher, Action) Invoke(Dispatcher, Action)

지정된 Dispatcher가 만들어진 스레드에서 보통 우선 순위에 있는 지정된 대리자를 동기적으로 실행합니다.Executes the specified delegate synchronously with normal priority on the thread that the specified Dispatcher was created on.

Invoke(Dispatcher, Action, TimeSpan) Invoke(Dispatcher, Action, TimeSpan) Invoke(Dispatcher, Action, TimeSpan)

지정된 Dispatcher가 만들어진 스레드에서 지정된 대리자를 동기적으로 실행하고 지정된 제한 시간 후에 실행을 중지합니다.Executes the specified delegate synchronously on the thread that the specified Dispatcher was created on, and stops execution after the specified time-out period.

Invoke(Dispatcher, Action, DispatcherPriority) Invoke(Dispatcher, Action, DispatcherPriority) Invoke(Dispatcher, Action, DispatcherPriority)

지정된 Dispatcher가 만들어진 스레드에서 지정된 우선 순위에 있는 지정된 대리자를 동기적으로 실행합니다.Executes the specified delegate synchronously with the specified priority on the thread that the specified Dispatcher was created on.

Invoke(Dispatcher, Action, TimeSpan, DispatcherPriority) Invoke(Dispatcher, Action, TimeSpan, DispatcherPriority) Invoke(Dispatcher, Action, TimeSpan, DispatcherPriority)

지정된 Dispatcher가 만들어진 스레드에서 지정된 우선 순위에 있는 지정된 대리자를 동기적으로 실행하고 지정된 제한 시간 후에 실행을 중지합니다.Executes the specified delegate synchronously with the specified priority on the thread that the specified Dispatcher was created on, and stops execution after the specified time-out period.

Invoke(Dispatcher, Action) Invoke(Dispatcher, Action) Invoke(Dispatcher, Action)

지정된 Dispatcher가 만들어진 스레드에서 보통 우선 순위에 있는 지정된 대리자를 동기적으로 실행합니다.Executes the specified delegate synchronously with normal priority on the thread that the specified Dispatcher was created on.

public:
[System::Runtime::CompilerServices::Extension]
 static void Invoke(System::Windows::Threading::Dispatcher ^ dispatcher, Action ^ action);
[System.ComponentModel.Browsable(false)]
public static void Invoke (this System.Windows.Threading.Dispatcher dispatcher, Action action);
static member Invoke : System.Windows.Threading.Dispatcher * Action -> unit

매개 변수

dispatcher
Dispatcher Dispatcher Dispatcher

대리자를 실행하는 디스패처입니다.The dispatcher that executes the delegate.

action
Action Action Action

실행할 대리자로, 인수를 사용하지 않으며 값을 반환하지 않습니다.The delegate to execute, which takes no arguments and does not return a value.

예외

actionnull인 경우action is null.

Invoke(Dispatcher, Action, TimeSpan) Invoke(Dispatcher, Action, TimeSpan) Invoke(Dispatcher, Action, TimeSpan)

지정된 Dispatcher가 만들어진 스레드에서 지정된 대리자를 동기적으로 실행하고 지정된 제한 시간 후에 실행을 중지합니다.Executes the specified delegate synchronously on the thread that the specified Dispatcher was created on, and stops execution after the specified time-out period.

public:
[System::Runtime::CompilerServices::Extension]
 static void Invoke(System::Windows::Threading::Dispatcher ^ dispatcher, Action ^ action, TimeSpan timeout);
[System.ComponentModel.Browsable(false)]
public static void Invoke (this System.Windows.Threading.Dispatcher dispatcher, Action action, TimeSpan timeout);
static member Invoke : System.Windows.Threading.Dispatcher * Action * TimeSpan -> unit

매개 변수

dispatcher
Dispatcher Dispatcher Dispatcher

대리자를 실행하는 디스패처입니다.The dispatcher that executes the delegate.

action
Action Action Action

실행할 대리자로, 인수를 사용하지 않으며 값을 반환하지 않습니다.The delegate to execute, which takes no arguments and does not return a value.

timeout
TimeSpan TimeSpan TimeSpan

작업이 완료될 때까지 대기하는 최대 시간입니다.The maximum time to wait for the operation to finish.

예외

actionnull인 경우action is null.

priorityInactive와 같은 경우priority is equal to Inactive.

Invoke(Dispatcher, Action, DispatcherPriority) Invoke(Dispatcher, Action, DispatcherPriority) Invoke(Dispatcher, Action, DispatcherPriority)

지정된 Dispatcher가 만들어진 스레드에서 지정된 우선 순위에 있는 지정된 대리자를 동기적으로 실행합니다.Executes the specified delegate synchronously with the specified priority on the thread that the specified Dispatcher was created on.

public:
[System::Runtime::CompilerServices::Extension]
 static void Invoke(System::Windows::Threading::Dispatcher ^ dispatcher, Action ^ action, System::Windows::Threading::DispatcherPriority priority);
[System.ComponentModel.Browsable(false)]
public static void Invoke (this System.Windows.Threading.Dispatcher dispatcher, Action action, System.Windows.Threading.DispatcherPriority priority);
static member Invoke : System.Windows.Threading.Dispatcher * Action * System.Windows.Threading.DispatcherPriority -> unit

매개 변수

dispatcher
Dispatcher Dispatcher Dispatcher

대리자를 실행하는 디스패처입니다.The dispatcher that executes the delegate.

action
Action Action Action

실행할 대리자로, 인수를 사용하지 않으며 값을 반환하지 않습니다.The delegate to execute, which takes no arguments and does not return a value.

priority
DispatcherPriority DispatcherPriority DispatcherPriority

Dispatcher 이벤트 큐의 다른 보류 중인 작업에 상대적인 대리자의 실행 우선 순위입니다.The execution priority of the delegate relative to other pending operations in the Dispatcher event queue.

예외

actionnull입니다.action is null.

priorityInactive와 같은 경우priority is equal to Inactive.

Invoke(Dispatcher, Action, TimeSpan, DispatcherPriority) Invoke(Dispatcher, Action, TimeSpan, DispatcherPriority) Invoke(Dispatcher, Action, TimeSpan, DispatcherPriority)

지정된 Dispatcher가 만들어진 스레드에서 지정된 우선 순위에 있는 지정된 대리자를 동기적으로 실행하고 지정된 제한 시간 후에 실행을 중지합니다.Executes the specified delegate synchronously with the specified priority on the thread that the specified Dispatcher was created on, and stops execution after the specified time-out period.

public:
[System::Runtime::CompilerServices::Extension]
 static void Invoke(System::Windows::Threading::Dispatcher ^ dispatcher, Action ^ action, TimeSpan timeout, System::Windows::Threading::DispatcherPriority priority);
[System.ComponentModel.Browsable(false)]
public static void Invoke (this System.Windows.Threading.Dispatcher dispatcher, Action action, TimeSpan timeout, System.Windows.Threading.DispatcherPriority priority);
static member Invoke : System.Windows.Threading.Dispatcher * Action * TimeSpan * System.Windows.Threading.DispatcherPriority -> unit

매개 변수

dispatcher
Dispatcher Dispatcher Dispatcher

대리자를 실행하는 디스패처입니다.The dispatcher that executes the delegate.

action
Action Action Action

실행할 대리자로, 인수를 사용하지 않으며 값을 반환하지 않습니다.The delegate to execute, which takes no arguments and does not return a value.

timeout
TimeSpan TimeSpan TimeSpan

작업이 완료될 때까지 대기하는 최대 시간입니다.The maximum time to wait for the operation to finish.

priority
DispatcherPriority DispatcherPriority DispatcherPriority

Dispatcher 이벤트 큐의 다른 보류 중인 작업에 상대적인 대리자의 실행 우선 순위입니다.The execution priority of the delegate relative to other pending operations in the Dispatcher event queue.

예외

actionnull인 경우action is null.

priorityInactive와 같은 경우priority is equal to Inactive.

적용 대상