共用方式為


Timer Constructor

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

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.

Overload List

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 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 methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 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 methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Timer(TimerCallback, Object, Int64, Int64) Initializes a new instance of the Timer class, using 64-bit signed integers to measure time intervals.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Timer(TimerCallback, Object, TimeSpan, TimeSpan) Initializes a new instance of the Timer class, using TimeSpan values to measure time intervals.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Timer(TimerCallback, Object, UInt32, UInt32) Initializes a new instance of the Timer class, using 32-bit unsigned integers to measure time intervals.

Top