DispatcherTimer コンストラクター

定義

DispatcherTimer クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
DispatcherTimer()

DispatcherTimer クラスの新しいインスタンスを初期化します。

DispatcherTimer(DispatcherPriority)

指定した優先度でタイマー イベントを処理する DispatcherTimer クラスの新しいインスタンスを初期化します。

DispatcherTimer(DispatcherPriority, Dispatcher)

指定したDispatcherTimerで指定した優先度で実行されるDispatcher クラスの新しいインスタンスを初期化します。

DispatcherTimer(TimeSpan, DispatcherPriority, EventHandler, Dispatcher)

指定した時間間隔、優先度、イベント ハンドラー、およびDispatcherTimerを使用する、Dispatcher クラスの新しいインスタンスを初期化します。

DispatcherTimer()

DispatcherTimer クラスの新しいインスタンスを初期化します。

public:
 DispatcherTimer();
public DispatcherTimer();
Public Sub New ()

注釈

DispatcherTimerは、現在のスレッドのDispatcherBackground優先順位で実行されます。 別の Dispatcherを指定するには、次のコンストラクターを使用します: DispatcherTimer.DispatcherTimer(DispatcherPriority, Dispatcher)

適用対象

DispatcherTimer(DispatcherPriority)

指定した優先度でタイマー イベントを処理する DispatcherTimer クラスの新しいインスタンスを初期化します。

public:
 DispatcherTimer(System::Windows::Threading::DispatcherPriority priority);
public DispatcherTimer(System.Windows.Threading.DispatcherPriority priority);
new System.Windows.Threading.DispatcherTimer : System.Windows.Threading.DispatcherPriority -> System.Windows.Threading.DispatcherTimer
Public Sub New (priority As DispatcherPriority)

パラメーター

priority
DispatcherPriority

タイマーを呼び出す優先順位。

注釈

DispatcherTimer は、現在のスレッドの Dispatcher で実行されます。 別の Dispatcherを指定するには、次のコンストラクターを使用します: DispatcherTimer(DispatcherPriority, Dispatcher)

適用対象

DispatcherTimer(DispatcherPriority, Dispatcher)

指定したDispatcherTimerで指定した優先度で実行されるDispatcher クラスの新しいインスタンスを初期化します。

public:
 DispatcherTimer(System::Windows::Threading::DispatcherPriority priority, System::Windows::Threading::Dispatcher ^ dispatcher);
public DispatcherTimer(System.Windows.Threading.DispatcherPriority priority, System.Windows.Threading.Dispatcher dispatcher);
new System.Windows.Threading.DispatcherTimer : System.Windows.Threading.DispatcherPriority * System.Windows.Threading.Dispatcher -> System.Windows.Threading.DispatcherTimer
Public Sub New (priority As DispatcherPriority, dispatcher As Dispatcher)

パラメーター

priority
DispatcherPriority

タイマーを呼び出す優先順位。

dispatcher
Dispatcher

タイマーが関連付けられているディスパッチャー。

例外

dispatchernullです。

適用対象

DispatcherTimer(TimeSpan, DispatcherPriority, EventHandler, Dispatcher)

指定した時間間隔、優先度、イベント ハンドラー、およびDispatcherTimerを使用する、Dispatcher クラスの新しいインスタンスを初期化します。

public:
 DispatcherTimer(TimeSpan interval, System::Windows::Threading::DispatcherPriority priority, EventHandler ^ callback, System::Windows::Threading::Dispatcher ^ dispatcher);
public DispatcherTimer(TimeSpan interval, System.Windows.Threading.DispatcherPriority priority, EventHandler callback, System.Windows.Threading.Dispatcher dispatcher);
new System.Windows.Threading.DispatcherTimer : TimeSpan * System.Windows.Threading.DispatcherPriority * EventHandler * System.Windows.Threading.Dispatcher -> System.Windows.Threading.DispatcherTimer
Public Sub New (interval As TimeSpan, priority As DispatcherPriority, callback As EventHandler, dispatcher As Dispatcher)

パラメーター

interval
TimeSpan

ティック間の期間。

priority
DispatcherPriority

タイマーを呼び出す優先順位。

callback
EventHandler

Tick イベントが発生したときに呼び出すイベント ハンドラー。

dispatcher
Dispatcher

タイマーが関連付けられているディスパッチャー。

例外

callbacknullです。

-又は-

dispatchernullです。

interval が 0 より小さいか 、Int32.MaxValue より大きい値です。

適用対象