DispatcherExtensions.Invoke 메서드

정의

지정된 대리자를 만든 스레드에서 동기적으로 실행 Dispatcher 합니다.

오버로드

Name Description
Invoke(Dispatcher, Action)

지정된 대리자를 생성된 스레드 Dispatcher 에서 일반 우선 순위로 동기적으로 실행합니다.

Invoke(Dispatcher, Action, TimeSpan)

지정한 스레드에서 Dispatcher 지정된 대리자를 동기적으로 실행하고 지정된 제한 시간 후에 실행을 중지합니다.

Invoke(Dispatcher, Action, DispatcherPriority)

지정된 대리자를 지정된 스레드 Dispatcher 에서 지정된 우선 순위로 동기적으로 실행합니다.

Invoke(Dispatcher, Action, TimeSpan, DispatcherPriority)

지정된 대리자를 만든 스레드 Dispatcher 에서 지정된 우선 순위와 동기적으로 실행하고 지정된 제한 시간 후에 실행을 중지합니다.

Invoke(Dispatcher, Action)

지정된 대리자를 생성된 스레드 Dispatcher 에서 일반 우선 순위로 동기적으로 실행합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static void Invoke(System::Windows::Threading::Dispatcher ^ dispatcher, Action ^ action);
public static void Invoke(this 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
[<System.ComponentModel.Browsable(false)>]
static member Invoke : System.Windows.Threading.Dispatcher * Action -> unit
<Extension()>
Public Sub Invoke (dispatcher As Dispatcher, action As Action)

매개 변수

dispatcher
Dispatcher

대리자를 실행하는 디스패처입니다.

action
Action

인수를 사용하지 않고 값을 반환하지 않는 실행할 대리자입니다.

특성

예외

actionnull입니다.

적용 대상

Invoke(Dispatcher, Action, TimeSpan)

지정한 스레드에서 Dispatcher 지정된 대리자를 동기적으로 실행하고 지정된 제한 시간 후에 실행을 중지합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static void Invoke(System::Windows::Threading::Dispatcher ^ dispatcher, Action ^ action, TimeSpan timeout);
public static void Invoke(this 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
[<System.ComponentModel.Browsable(false)>]
static member Invoke : System.Windows.Threading.Dispatcher * Action * TimeSpan -> unit
<Extension()>
Public Sub Invoke (dispatcher As Dispatcher, action As Action, timeout As TimeSpan)

매개 변수

dispatcher
Dispatcher

대리자를 실행하는 디스패처입니다.

action
Action

인수를 사용하지 않고 값을 반환하지 않는 실행할 대리자입니다.

timeout
TimeSpan

작업이 완료되기를 기다리는 최대 시간입니다.

특성

예외

actionnull입니다.

priority가 같음 Inactive

priority 유효한 DispatcherPriority아닙니다.

적용 대상

Invoke(Dispatcher, Action, DispatcherPriority)

지정된 대리자를 지정된 스레드 Dispatcher 에서 지정된 우선 순위로 동기적으로 실행합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static void Invoke(System::Windows::Threading::Dispatcher ^ dispatcher, Action ^ action, System::Windows::Threading::DispatcherPriority priority);
public static void Invoke(this 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
[<System.ComponentModel.Browsable(false)>]
static member Invoke : System.Windows.Threading.Dispatcher * Action * System.Windows.Threading.DispatcherPriority -> unit
<Extension()>
Public Sub Invoke (dispatcher As Dispatcher, action As Action, priority As DispatcherPriority)

매개 변수

dispatcher
Dispatcher

대리자를 실행하는 디스패처입니다.

action
Action

인수를 사용하지 않고 값을 반환하지 않는 실행할 대리자입니다.

priority
DispatcherPriority

이벤트 큐의 다른 보류 중인 작업에 상대적인 대리자의 실행 우선 순위입니다 Dispatcher .

특성

예외

actionnull입니다.

priority가 같음 Inactive

priority 유효한 DispatcherPriority아닙니다.

적용 대상

Invoke(Dispatcher, Action, TimeSpan, DispatcherPriority)

지정된 대리자를 만든 스레드 Dispatcher 에서 지정된 우선 순위와 동기적으로 실행하고 지정된 제한 시간 후에 실행을 중지합니다.

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

매개 변수

dispatcher
Dispatcher

대리자를 실행하는 디스패처입니다.

action
Action

인수를 사용하지 않고 값을 반환하지 않는 실행할 대리자입니다.

timeout
TimeSpan

작업이 완료되기를 기다리는 최대 시간입니다.

priority
DispatcherPriority

이벤트 큐의 다른 보류 중인 작업에 상대적인 대리자의 실행 우선 순위입니다 Dispatcher .

특성

예외

actionnull입니다.

priority가 같음 Inactive

priority 유효한 DispatcherPriority아닙니다.

적용 대상