ThreadPoolTimer.Delay Property

Definition

Gets the timeout value of a single-use timer created with CreateTimer.

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

Property Value

The timeout value. When the timeout value elapses, the timer expires and its TimerElapsedHandler delegate is called.

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 timer begins counting down as soon as the timer object is created.

Applies to