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 ErrorEventArgs(Exception exception);
// Public Instance Methods
   public virtual Exception GetException( );
}

Hierarchy

System.Object System.EventArgs ErrorEventArgs

Passed To

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

Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.