DispatcherTimer Costruttori

Definizione

Inizializza una nuova istanza della classe DispatcherTimer.

Overload

Nome Descrizione
DispatcherTimer()

Inizializza una nuova istanza della classe DispatcherTimer.

DispatcherTimer(DispatcherPriority)

Inizializza una nuova istanza della DispatcherTimer classe che elabora gli eventi timer con la priorità specificata.

DispatcherTimer(DispatcherPriority, Dispatcher)

Inizializza una nuova istanza della DispatcherTimer classe che viene eseguita sull'oggetto specificato Dispatcher con la priorità specificata.

DispatcherTimer(TimeSpan, DispatcherPriority, EventHandler, Dispatcher)

Inizializza una nuova istanza della DispatcherTimer classe che usa l'intervallo di tempo, la priorità, il gestore eventi e Dispatcher.

DispatcherTimer()

Inizializza una nuova istanza della classe DispatcherTimer.

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

Commenti

DispatcherTimer viene eseguito sull'oggetto Dispatcher del thread corrente con Background priorità. Per specificare un oggetto diverso Dispatcher, usare il costruttore seguente: DispatcherTimer.DispatcherTimer(DispatcherPriority, Dispatcher).

Si applica a

DispatcherTimer(DispatcherPriority)

Inizializza una nuova istanza della DispatcherTimer classe che elabora gli eventi timer con la priorità specificata.

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)

Parametri

priority
DispatcherPriority

Priorità in corrispondenza della quale richiamare il timer.

Commenti

DispatcherTimer viene eseguito sull'oggetto Dispatcher del thread corrente. Per specificare un oggetto diverso Dispatcher, usare il costruttore seguente: DispatcherTimer(DispatcherPriority, Dispatcher).

Si applica a

DispatcherTimer(DispatcherPriority, Dispatcher)

Inizializza una nuova istanza della DispatcherTimer classe che viene eseguita sull'oggetto specificato Dispatcher con la priorità specificata.

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)

Parametri

priority
DispatcherPriority

Priorità in corrispondenza della quale richiamare il timer.

dispatcher
Dispatcher

Il dispatcher a cui è associato il timer.

Eccezioni

dispatcher è null.

Si applica a

DispatcherTimer(TimeSpan, DispatcherPriority, EventHandler, Dispatcher)

Inizializza una nuova istanza della DispatcherTimer classe che usa l'intervallo di tempo, la priorità, il gestore eventi e 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)

Parametri

interval
TimeSpan

Periodo di tempo tra i tick.

priority
DispatcherPriority

Priorità in corrispondenza della quale richiamare il timer.

callback
EventHandler

Gestore eventi da chiamare quando si verifica l'evento Tick .

dispatcher
Dispatcher

Il dispatcher a cui è associato il timer.

Eccezioni

callback è null.

oppure

dispatcher è null.

interval è minore di 0 o maggiore di Int32.MaxValue.

Si applica a