共用方式為


IDispatcherTimer Interface

Definition

Provides a timer that is integrated into the Dispatcher queue, which is processed at a specified interval of time.

public interface class IDispatcherTimer
public interface IDispatcherTimer
type IDispatcherTimer = interface
Public Interface IDispatcherTimer

Properties

Interval

Gets or sets the amount of time between timer ticks.

IsRepeating

Gets or sets whether the timer should repeat.

IsRunning

Gets a value that indicates whether the timer is running.

Methods

Start()

Starts the timer.

Stop()

Stops the timer.

Events

Tick

Occurs when the timer interval has elapsed.

Applies to