Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FileSystemWatcher.OnError Method (ErrorEventArgs)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Raises the Error event.

Namespace:   System.IO
Assembly:  System (in System.dll)

protected void OnError(
	ErrorEventArgs e
)

Parameters

e
Type: System.IO.ErrorEventArgs

An ErrorEventArgs that contains the event data.

OnError is called when an error occurs.

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

Notes to Inheritors:

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

.NET Framework
Available since 1.1
Return to top
Show:
© 2018 Microsoft