Метод | Описание | |
---|---|---|
CreateAndStart ( System.TimeSpan duration, EventHandler callback ) : |
Creates a new OneShotDispatcherTimer and starts it.
|
|
OneShotDispatcherTimer ( ) : System |
Initializes a new OneShotDispatcherTimer instance.
|
|
Start ( ) : void |
Starts the timer. This method has no effect if the timer is already started. The same OneShotDispatcherTimer instance can be started and stopped multiple times. |
|
Stop ( ) : void |
Stops the timer. This method has no effect if the timer is not started. The Fired event is guaranteed not to be raised once this method has been invoked and until the timer is started again. |
Метод | Описание | |
---|---|---|
OnTimerTick ( object sender, |
Listens to Tick events on the underlying timer.
|
|
RaiseFired ( ) : void |
Raises the Fired event.
|
public static CreateAndStart ( System.TimeSpan duration, EventHandler callback ) : |
||
duration | System.TimeSpan | The duration of the timer. |
callback | EventHandler | The delegate that will be called when the timer fires. |
Результат |
public OneShotDispatcherTimer ( ) : System | ||
Результат | System |