DispatcherExtensions.Invoke 메서드

정의

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

오버로드

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

실행할 대리자로, 인수를 사용하지 않으며 값을 반환하지 않습니다.

특성

예외

action이(가) null인 경우

적용 대상

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

작업이 완료될 때까지 대기하는 최대 시간입니다.

특성

예외

action이(가) null인 경우

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 이벤트 큐의 다른 보류 중인 작업에 상대적인 대리자의 실행 우선 순위입니다.

특성

예외

action이(가) null인 경우

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 이벤트 큐의 다른 보류 중인 작업에 상대적인 대리자의 실행 우선 순위입니다.

특성

예외

action이(가) null인 경우

priority이(가) Inactive와 같은 경우.

priority은 유효한 DispatcherPriority이 아닙니다.

적용 대상