36 references to WatcherChangeTypes
netstandard (1)
netstandard.cs (1)
973[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.WatcherChangeTypes))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
585[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.WatcherChangeTypes))]
System.IO.FileSystem.Watcher (34)
System\IO\FileSystemEventArgs.cs (4)
11private readonly WatcherChangeTypes _changeType; 18public FileSystemEventArgs(WatcherChangeTypes changeType, string directory, string? name) 45/// Gets one of the <see cref='System.IO.WatcherChangeTypes'/> values. 47public WatcherChangeTypes ChangeType
System\IO\FileSystemWatcher.cs (20)
422private void NotifyRenameEventArgs(WatcherChangeTypes action, ReadOnlySpan<char> name, ReadOnlySpan<char> oldName) 432private FileSystemEventHandler? GetHandler(WatcherChangeTypes changeType) 436case WatcherChangeTypes.Created: 438case WatcherChangeTypes.Deleted: 440case WatcherChangeTypes.Changed: 451private void NotifyFileSystemEventArgs(WatcherChangeTypes changeType, ReadOnlySpan<char> name) 464private void NotifyFileSystemEventArgs(WatcherChangeTypes changeType, string name) 542public WaitForChangedResult WaitForChanged(WatcherChangeTypes changeType) => 545public WaitForChangedResult WaitForChanged(WatcherChangeTypes changeType, int timeout) 556if ((changeType & (WatcherChangeTypes.Created | WatcherChangeTypes.Deleted | WatcherChangeTypes.Changed)) != 0) 565if ((changeType & WatcherChangeTypes.Created) != 0) 567if ((changeType & WatcherChangeTypes.Deleted) != 0) 569if ((changeType & WatcherChangeTypes.Changed) != 0) 572if ((changeType & WatcherChangeTypes.Renamed) != 0) 608if ((changeType & WatcherChangeTypes.Changed) != 0) 610if ((changeType & WatcherChangeTypes.Deleted) != 0) 612if ((changeType & WatcherChangeTypes.Created) != 0) 623public WaitForChangedResult WaitForChanged(WatcherChangeTypes changeType, TimeSpan timeout) =>
System\IO\FileSystemWatcher.Linux.cs (7)
633watcher.NotifyFileSystemEventArgs(WatcherChangeTypes.Deleted, previousEventName); 667watcher.NotifyFileSystemEventArgs(WatcherChangeTypes.Created, expandedName); 677watcher.NotifyFileSystemEventArgs(WatcherChangeTypes.Deleted, expandedName); 684watcher.NotifyFileSystemEventArgs(WatcherChangeTypes.Changed, expandedName); 711watcher.NotifyFileSystemEventArgs(WatcherChangeTypes.Deleted, expandedName); 726watcher.NotifyRenameEventArgs(WatcherChangeTypes.Renamed, expandedName, previousEventName); 732watcher.NotifyFileSystemEventArgs(WatcherChangeTypes.Created, expandedName);
System\IO\RenamedEventArgs.cs (1)
17public RenamedEventArgs(WatcherChangeTypes changeType, string directory, string? name, string? oldName)
System\IO\WaitForChangedResult.cs (2)
8internal WaitForChangedResult(WatcherChangeTypes changeType, string? name, string? oldName, bool timedOut) 19public WatcherChangeTypes ChangeType { get; set; }