Name

FileSystemEventArgs

Synopsis

This class offers the arguments for a FileSystemEventHandler.

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

Hierarchy

System.ObjectSystem.EventArgsFileSystemEventArgs

Subclasses

RenamedEventArgs

Passed To

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

Get C# in a Nutshell 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.