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です。

priorityInactive が等価です。

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です。

priorityInactive が等価です。

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です。

priorityInactive が等価です。

priority は有効な DispatcherPriority ではありません。

適用対象