Bridge

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.Threading
Assembly:  Bridge (in Bridge.dll)

Syntax


public bool Change(
	int dueTime,
	int period
)
Public Function Change ( _
	dueTime As Integer, _
	period As Integer _
) As Boolean
public:
bool^ Change(
	int^ dueTime, 
	int^ period
)

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


ExceptionCondition
ObjectDisposedExceptionThe Timer has already been disposed.
System..::..ArgumentOutOfRangeExceptionThe dueTime or period parameter is negative and is not equal to Infinite.