DispatcherTimer Constructor (DispatcherPriority, Dispatcher)

 

Initializes a new instance of the DispatcherTimer class which runs on the specified Dispatcher at the specified priority.

Namespace:   System.Windows.Threading
Assembly:  WindowsBase (in WindowsBase.dll)

new : 
        priority:DispatcherPriority *
        dispatcher:Dispatcher -> DispatcherTimer

Parameters

priority
Type: System.Windows.Threading.DispatcherPriority

The priority at which to invoke the timer.

dispatcher
Type: System.Windows.Threading.Dispatcher

The dispatcher the timer is associated with.

Exception Condition
ArgumentNullException

dispatcher is null.

.NET Framework
Available since 3.0
Return to top
Show: