Timer Constructor

Timer Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the Timer class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Timer(TimerCallback) Initializes a new instance of the Timer class with an infinite interval and an infinite due time, using the newly created Timer object as the state object.
Public method Timer(TimerCallback, Object, Int32, Int32) Initializes a new instance of the Timer class, using a 32-bit signed integer to specify the time interval.
Public method Timer(TimerCallback, Object, Int64, Int64) Initializes a new instance of the Timer class, using 64-bit signed integers to measure time intervals.
Public method Timer(TimerCallback, Object, TimeSpan, TimeSpan) Initializes a new instance of the Timer class, using TimeSpan values to measure time intervals.
Public method Timer(TimerCallback, Object, UInt32, UInt32) Initializes a new instance of the Timer class, using 32-bit unsigned integers to measure time intervals.
Top

Show:
© 2017 Microsoft