Bridge

Timer..::..Change Method (Int64, Int64)

Changes the start time and the interval between method invocations for a timer, using 64-bit signed integers to measure time intervals.

Namespace:  System.Threading
Assembly:  Bridge (in Bridge.dll)

Syntax


[NameAttribute]
public bool Change(
	long dueTime,
	long period
)
<NameAttribute> _
Public Function Change ( _
	dueTime As Long, _
	period As Long _
) As Boolean
[NameAttribute]
public:
bool^ Change(
	long long^ dueTime, 
	long long^ period
)

Parameters

dueTime
Type: System..::..Int64
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..::..Int64
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 less than -1.
System..::..NotSupportedExceptionThe dueTime or period parameter is greater than 4294967294.