DispatcherExtensions.Invoke メソッド
定義
指定した Dispatcher が作成されたスレッドで、指定したデリゲートを同期的に実行します。Executes the specified delegate synchronously on the thread that the specified Dispatcher was created on.
オーバーロード
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) |
指定した 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) |
指定した 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) |
指定した 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)
指定した 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
デリゲートを実行するディスパッチャー。The dispatcher that executes the delegate.
- action
- Action
実行するデリゲート。引数は受け取らず、値も返しません。The delegate to execute, which takes no arguments and does not return a value.
- 属性
例外
action
は null
です。action
is null
.
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
デリゲートを実行するディスパッチャー。The dispatcher that executes the delegate.
- action
- Action
実行するデリゲート。引数は受け取らず、値も返しません。The delegate to execute, which takes no arguments and does not return a value.
- timeout
- TimeSpan
操作が完了するまでの最大待機時間。The maximum time to wait for the operation to finish.
- 属性
例外
action
が null
です。action
is null
.
priority
は有効な DispatcherPriority ではありません。priority
is not a valid 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
デリゲートを実行するディスパッチャー。The dispatcher that executes the delegate.
- action
- Action
実行するデリゲート。引数は受け取らず、値も返しません。The delegate to execute, which takes no arguments and does not return a value.
- priority
- DispatcherPriority
デリゲートの実行優先順位。これは、Dispatcher イベント キューにある保留中のその他の操作に対する優先順位です。The execution priority of the delegate relative to other pending operations in the Dispatcher event queue.
- 属性
例外
action
が null
です。action
is null
.
priority
は有効な DispatcherPriority ではありません。priority
is not a valid 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
デリゲートを実行するディスパッチャー。The dispatcher that executes the delegate.
- action
- Action
実行するデリゲート。引数は受け取らず、値も返しません。The delegate to execute, which takes no arguments and does not return a value.
- timeout
- TimeSpan
操作が完了するまでの最大待機時間。The maximum time to wait for the operation to finish.
- priority
- DispatcherPriority
デリゲートの実行優先順位。これは、Dispatcher イベント キューにある保留中のその他の操作に対する優先順位です。The execution priority of the delegate relative to other pending operations in the Dispatcher event queue.
- 属性
例外
action
は null
です。action
is null
.
priority
は有効な DispatcherPriority ではありません。priority
is not a valid DispatcherPriority.