DispatcherExtensions.BeginInvoke メソッド

定義

Dispatcherが作成されたスレッドで、指定したデリゲートを非同期的に実行します。

オーバーロード

名前 説明
BeginInvoke(Dispatcher, Action)

指定した Dispatcher が作成されたスレッドで、指定したデリゲートを通常の優先順位で非同期的に実行します。

BeginInvoke(Dispatcher, Action, DispatcherPriority)

指定した Dispatcher が作成されたスレッドで、指定した優先度で指定したデリゲートを非同期的に実行します。

BeginInvoke(Dispatcher, Action)

指定した Dispatcher が作成されたスレッドで、指定したデリゲートを通常の優先順位で非同期的に実行します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Windows::Threading::DispatcherOperation ^ BeginInvoke(System::Windows::Threading::Dispatcher ^ dispatcher, Action ^ action);
public static System.Windows.Threading.DispatcherOperation BeginInvoke(this System.Windows.Threading.Dispatcher dispatcher, Action action);
[System.ComponentModel.Browsable(false)]
public static System.Windows.Threading.DispatcherOperation BeginInvoke(this System.Windows.Threading.Dispatcher dispatcher, Action action);
static member BeginInvoke : System.Windows.Threading.Dispatcher * Action -> System.Windows.Threading.DispatcherOperation
[<System.ComponentModel.Browsable(false)>]
static member BeginInvoke : System.Windows.Threading.Dispatcher * Action -> System.Windows.Threading.DispatcherOperation
<Extension()>
Public Function BeginInvoke (dispatcher As Dispatcher, action As Action) As DispatcherOperation

パラメーター

dispatcher
Dispatcher

デリゲートを実行するディスパッチャー。

action
Action

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

返品

IAsyncResult操作の結果を表すBeginInvoke(Dispatcher, Action) オブジェクト。

属性

例外

actionnullです。

適用対象

BeginInvoke(Dispatcher, Action, DispatcherPriority)

指定した Dispatcher が作成されたスレッドで、指定した優先度で指定したデリゲートを非同期的に実行します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Windows::Threading::DispatcherOperation ^ BeginInvoke(System::Windows::Threading::Dispatcher ^ dispatcher, Action ^ action, System::Windows::Threading::DispatcherPriority priority);
public static System.Windows.Threading.DispatcherOperation BeginInvoke(this System.Windows.Threading.Dispatcher dispatcher, Action action, System.Windows.Threading.DispatcherPriority priority);
[System.ComponentModel.Browsable(false)]
public static System.Windows.Threading.DispatcherOperation BeginInvoke(this System.Windows.Threading.Dispatcher dispatcher, Action action, System.Windows.Threading.DispatcherPriority priority);
static member BeginInvoke : System.Windows.Threading.Dispatcher * Action * System.Windows.Threading.DispatcherPriority -> System.Windows.Threading.DispatcherOperation
[<System.ComponentModel.Browsable(false)>]
static member BeginInvoke : System.Windows.Threading.Dispatcher * Action * System.Windows.Threading.DispatcherPriority -> System.Windows.Threading.DispatcherOperation
<Extension()>
Public Function BeginInvoke (dispatcher As Dispatcher, action As Action, priority As DispatcherPriority) As DispatcherOperation

パラメーター

dispatcher
Dispatcher

デリゲートを実行するディスパッチャー。

action
Action

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

priority
DispatcherPriority

Dispatcher イベント キュー内の他の保留中の操作に対するデリゲートの実行優先度。

返品

IAsyncResult操作の結果を表すBeginInvoke(Dispatcher, Action, DispatcherPriority) オブジェクト。

属性

例外

actionnullです。

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

適用対象