O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

ErrorEventArgs

Synopsis

This type defines the event arguments that are passed when a FileSystemWatcher.Error event occurs. It contains the exception that was raised by the error, which you can access by calling GetException().

public class ErrorEventArgs : EventArgs {
// Public Constructors
   public method ErrorEventArgs(Exception exception);  
// Public Instance Methods
   public virtual method Exception GetException();  
}

Hierarchy

System.ObjectSystem.EventArgsErrorEventArgs

Passed To

ErrorEventHandler.{BeginInvoke(), Invoke()}, FileSystemWatcher.OnError()

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required