Bridge

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

Changes the start time and the interval between method invocations for a timer, using TimeSpan values to measure time intervals.

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

Syntax


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

Parameters

dueTime
Type: System..::..TimeSpan
A TimeSpan representing the amount of time to delay before invoking the callback method specified when the Timer was constructed. Specify negative one (-1) milliseconds to prevent the timer from restarting. Specify zero (0) to restart the timer immediately.
period
Type: System..::..TimeSpan
The time interval between invocations of the callback method specified when the Timer was constructed. Specify negative one (-1) milliseconds to disable periodic signaling.

Return Value

true if the timer was successfully updated; otherwise, false.