Raises the System.IO.FileSystemWatcher.Error event.
[Visual Basic] Overridable Protected Sub OnError( _ ByVal e As ErrorEventArgs _ ) [C#] protected virtual void OnError( ErrorEventArgs e ); [C++] protected: virtual void OnError( ErrorEventArgs* e ); [JScript] protected function OnError( e : ErrorEventArgs );
OnError is called when an error occurs.
Raising an event invokes the event-handling method through a delegate. For more information, see TBD.
Notes to Inheritors: When overriding OnError in a derived class, be sure to call the base class's OnError method.
FileSystemWatcher Class | FileSystemWatcher Members | System.IO Namespace | System.IO.FileSystemWatcher.Error | ErrorEventArgs | ErrorEventHandler | InternalBufferOverflowException