Jaa


ThreadPoolTimer.Period Property

Definition

Gets the timeout value of a periodic timer created with CreatePeriodicTimer.

public:
 property TimeSpan Period { TimeSpan get(); };
TimeSpan Period();
public System.TimeSpan Period { get; }
var timeSpan = threadPoolTimer.period;
Public ReadOnly Property Period As TimeSpan

Property Value

The timeout value. When the timeout value elapses, the timer expires, its TimerElapsedHandler delegate is called, and the timer reactivates. This behavior continues until the timer is canceled.

C++ This amount of time is specified in ticks (100-nanosecond units) using the Windows::Foundation::TimeSpan structure.

JavaScript and C# This amount of time is specified using the System.TimeSpan structure. It can be specified in ticks, or it can be specified in milliseconds, seconds, and so on.

Remarks

A periodic timer begins counting down as soon as the timer object is created. When the timer expires, it is reactivated and begins counting down again.

Applies to