This documentation is archived and is not being maintained.

ElapsedEventArgs.SignalTime Property

Gets the time the Elapsed event was raised.

[Visual Basic]
Public ReadOnly Property SignalTime As DateTime
[C#]
public DateTime SignalTime {get;}
[C++]
public: __property DateTime get_SignalTime();
[JScript]
public function get SignalTime() : DateTime;

Property Value

The time the Elapsed event was raised.

Remarks

The event-handling method might be called even after the Stop method is called. The Timer component is multithreaded to ensure more accuracy. However, this means that the call to the event-handling method might run on one thread at the same time that a call to the Stop method runs on another thread. This might result in the Elapsed event being raised even after the Stop method is called. To prevent this, use the SignalTime property to compare the time the event is raised to the time the Stop method is called. If the event is raised after the Stop method is called, do not process the event.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ElapsedEventArgs Class | ElapsedEventArgs Members | System.Timers Namespace

Show: