Timer..::..Change Method (Int32, Int32)
Changes the start time and the interval between method invocations for a timer, using 32-bit signed integers to measure time intervals.
Namespace:
System.ThreadingAssembly: Bridge (in Bridge.dll)
Syntax
Parameters
- dueTime
- Type: System..::..Int32
The amount of time to delay before the invoking the callback method specified when the Timer was constructed, in milliseconds. Specify Infinite to prevent the timer from restarting. Specify zero (0) to restart the timer immediately.
- period
- Type: System..::..Int32
The time interval between invocations of the callback method specified when the Timer was constructed, in milliseconds. Specify Infinite to disable periodic signaling.
Return Value
true if the timer was successfully updated; otherwise, false.Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The Timer has already been disposed. |
System..::..ArgumentOutOfRangeException | The dueTime or period parameter is negative and is not equal to Infinite. |