Share via


ExtendedTimer Constructor (TimerCallback, Object, DateTime, TimeSpan)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Initializes a new instance of the ExtendedTimer class, using DateTime and TimeSpan values to measure time intervals.

Namespace:  Microsoft.SPOT
Assembly:  Microsoft.SPOT.Native (in Microsoft.SPOT.Native.dll)

Syntax

'Declaration
Public Sub New ( _
    callback As TimerCallback, _
    state As Object, _
    dueTime As DateTime, _
    period As TimeSpan _
)
public ExtendedTimer(
    TimerCallback callback,
    Object state,
    DateTime dueTime,
    TimeSpan period
)
public:
ExtendedTimer(
    TimerCallback^ callback, 
    Object^ state, 
    DateTime dueTime, 
    TimeSpan period
)
new : 
        callback:TimerCallback * 
        state:Object * 
        dueTime:DateTime * 
        period:TimeSpan -> ExtendedTimer
public function ExtendedTimer(
    callback : TimerCallback, 
    state : Object, 
    dueTime : DateTime, 
    period : TimeSpan
)

Parameters

  • state
    Type: System. . :: . .Object
    An object that contains application-specific information relevant to the methods invoked by the callback method, or nullNothingnullptrunita null reference (Nothing in Visual Basic).
  • dueTime
    Type: System. . :: . .DateTime
    The DateTime value that represents the amount of time the timer will wait before the callback method invokes its methods, in milliseconds. Specify Infinite to prevent the timer from starting. Specify 0 (zero) to start the timer immediately.
  • period
    Type: System. . :: . .TimeSpan
    The TimeSpan value that represents the time interval between invocations of the methods referenced by the callback method, in milliseconds. Specify Infinite to disable periodic signaling.

.NET Framework Security

See Also

Reference

ExtendedTimer Class

ExtendedTimer Overload

Microsoft.SPOT Namespace