Name

FileSystemEventArgs

Synopsis

This class offers the arguments for a FileSystemEventHandler.

public class FileSystemEventArgs : EventArgs {
// Public Constructors
   public FileSystemEventArgs(WatcherChangeTypes changeType, string directory, string name);
// Public Instance Properties
   public WatcherChangeTypes ChangeType{get; }
   public string FullPath{get; }
   public string Name{get; }
}

Hierarchy

System.Object System.EventArgs FileSystemEventArgs

Subclasses

RenamedEventArgs

Passed To

FileSystemEventHandler.{BeginInvoke( ), Invoke( )}, FileSystemWatcher.{OnChanged( ), OnCreated( ), OnDeleted( )}

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.