ThreadPoolTimer.Delay Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro