言語

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

実行するデリゲート。引数を受け取らず、値を返しません。

属性

例外

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ではありません。

適用対象