TimerItem.Reset Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Reset() |
Resets the timer by rescheduling the item for a period of time equal to the original timer span. |
Reset(TimeSpan) |
Resets the timer by rescheduling the item for the new period of time specified. |
Reset()
Resets the timer by rescheduling the item for a period of time equal to the original timer span.
public:
void Reset();
public void Reset ();
member this.Reset : unit -> unit
Public Sub Reset ()
Exceptions
Thrown when the configured span in seconds is 0 or greater than UInt16.MaxValue.
Applies to
Reset(TimeSpan)
Resets the timer by rescheduling the item for the new period of time specified.
public:
void Reset(TimeSpan newTimerSpan);
public void Reset (TimeSpan newTimerSpan);
member this.Reset : TimeSpan -> unit
Public Sub Reset (newTimerSpan As TimeSpan)
Parameters
- newTimerSpan
- TimeSpan
The new timer span.
Exceptions
Thrown when the interval is 0 or more than UInt16.MaxValue seconds.