Change(TimeSpan, TimeSpan)
abstract
public abstract void Change(TimeSpan dueTime, TimeSpan period)Changes the start time and the interval between method invocations for a timer, using
System.TimeSpan values to measure time intervals.Parameters
dueTimeTimeSpan- A
System.TimeSpanrepresenting the amount of time to delay before invoking the callback method specified when theIGrainTimerwas constructed. SpecifySystem.Threading.Timeout.InfiniteTimeSpanto prevent the timer from restarting. SpecifySystem.TimeSpan.Zeroto restart the timer immediately. periodTimeSpan- The time interval between invocations of the callback method specified when the timer was constructed. Specify
System.Threading.Timeout.InfiniteTimeSpanto disable periodic signaling.
Exceptions
System.ArgumentOutOfRangeException- The
dueTimeorperiodparameter, in milliseconds, is less than -1 or greater than 4294967294.
