This documentation is archived and is not being maintained.

FileSystemWatcher.OnError Method

Raises the Error event.

[Visual Basic]
Protected Sub OnError( _
   ByVal e As ErrorEventArgs _
)
[C#]
protected void OnError(
 ErrorEventArgs e
);
[C++]
protected: void OnError(
 ErrorEventArgs* e
);
[JScript]
protected function OnError(
   e : ErrorEventArgs
);

Parameters

e
An ErrorEventArgs that contains the event data.

Remarks

OnError is called when an error occurs.

Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.

Notes to Inheritors:  When overriding OnError in a derived class, be sure to call the base class's OnError method.

Requirements

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

See Also

FileSystemWatcher Class | FileSystemWatcher Members | System.IO Namespace | Error | ErrorEventArgs | ErrorEventHandler | InternalBufferOverflowException

Show: