ExtendedTimer Constructor (TimerCallback, Object, ExtendedTimer.TimeEvents)
[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.
Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.Native (in Microsoft.SPOT.Native.dll)
Syntax
'Declaration
Public Sub New ( _
callback As TimerCallback, _
state As Object, _
ev As ExtendedTimer.TimeEvents _
)
public ExtendedTimer(
TimerCallback callback,
Object state,
ExtendedTimer.TimeEvents ev
)
public:
ExtendedTimer(
TimerCallback^ callback,
Object^ state,
ExtendedTimer::TimeEvents ev
)
new :
callback:TimerCallback *
state:Object *
ev:ExtendedTimer.TimeEvents -> ExtendedTimer
public function ExtendedTimer(
callback : TimerCallback,
state : Object,
ev : ExtendedTimer..::..TimeEvents
)
Parameters
- callback
Type: System.Threading. . :: . .TimerCallback
The callback method that is executed when the timer expires.
- 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).
- ev
Type: Microsoft.SPOT. . :: . .ExtendedTimer. . :: . .TimeEvents
The event on which the callback method is to be executed.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.