Initializes a new instance of the Timer class, setting the Interval property to the specified period.
[Visual Basic] Overloads Public Sub New( _ ByVal interval As Double _ ) [C#] public Timer( double interval ); [C++] public: Timer( double interval ); [JScript] public function Timer( interval : double );
Exception Type | Condition |
---|---|
ArgumentException | The interval is less than 0 milliseconds. |
Timer Class | Timer Members | System.Timers Namespace | Timer Constructor Overload List