Framework.SetTimer(SetTimer,Single) Method (SetTimer)
Adds a timer to the list of timers for the application.
Visual Basic Public Function SetTimer( _
ByVal callbackTimer As TimerCallback, _
ByVal timeoutInSeconds As Single _
) As IntegerC# public int SetTimer(
TimerCallback callbackTimer,
float timeoutInSeconds
);C++ public:
int SetTimer(
TimerCallback^ callbackTimer,
float timeoutInSeconds
);JScript public function SetTimer(
callbackTimer : TimerCallback,
timeoutInSeconds : float
) : int;
callbackTimer Microsoft.Samples.DirectX.UtilityToolkit.TimerCallback
The TimerCallback delegate that handles the timer events.timeoutInSeconds System.Single
Interval, in seconds, between successive calls to the TimerCallback delegate.
System.Int32
The unique identifier (ID) of the timer.
Timers that are created with this method can be destroyed by the KillTimer method.
Show: