ExtendedTimer Constructor (TimerCallback, Object, DateTime, TimeSpan)
Initializes a new instance of the ExtendedTimer class, using System.DateTime and System.TimeSpan values to measure time intervals.
Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.Native (in microsoft.spot.native.dll)
Syntax
[MethodImplAttribute]
public ExtendedTimer (
TimerCallbackcallback,
Objectstate,
DateTimedueTime,
TimeSpanperiod
)
Parameters
- callback
The callback method that is executed when the timer expires. - state
An object that contains application-specific information relevant to the methods invoked by the callback method, or a null reference. - dueTime
The System.DateTime value that represents the amount of time the timer will wait before the callback method invokes its methods, in milliseconds. Specify System.Threading.Timeout.Infinite to prevent the timer from starting. Specify 0 (zero) to start the timer immediately. - period
The System.TimeSpan value that represents the time interval between invocations of the methods referenced by the callback method, in milliseconds. Specify System.Threading.Timeout.Infinite to disable periodic signaling.
Version Information
Available in .NET Micro Framework version 2.0, 2.5
See Also
Reference
ExtendedTimer Class
ExtendedTimer Members
Microsoft.SPOT Namespace