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)
408private void NotifyRenameEventArgs(WatcherChangeTypes action, ReadOnlySpan<char> name, ReadOnlySpan<char> oldName) 418private FileSystemEventHandler? GetHandler(WatcherChangeTypes changeType) 422case WatcherChangeTypes.Created: 424case WatcherChangeTypes.Deleted: 426case WatcherChangeTypes.Changed: 437private void NotifyFileSystemEventArgs(WatcherChangeTypes changeType, ReadOnlySpan<char> name) 450private void NotifyFileSystemEventArgs(WatcherChangeTypes changeType, string name) 528public WaitForChangedResult WaitForChanged(WatcherChangeTypes changeType) => 531public WaitForChangedResult WaitForChanged(WatcherChangeTypes changeType, int timeout) 542if ((changeType & (WatcherChangeTypes.Created | WatcherChangeTypes.Deleted | WatcherChangeTypes.Changed)) != 0) 551if ((changeType & WatcherChangeTypes.Created) != 0) 553if ((changeType & WatcherChangeTypes.Deleted) != 0) 555if ((changeType & WatcherChangeTypes.Changed) != 0) 558if ((changeType & WatcherChangeTypes.Renamed) != 0) 594if ((changeType & WatcherChangeTypes.Changed) != 0) 596if ((changeType & WatcherChangeTypes.Deleted) != 0) 598if ((changeType & WatcherChangeTypes.Created) != 0) 609public WaitForChangedResult WaitForChanged(WatcherChangeTypes changeType, TimeSpan timeout) =>
System\IO\FileSystemWatcher.Linux.cs (7)
647watcher.NotifyFileSystemEventArgs(WatcherChangeTypes.Deleted, previousEventName); 681watcher.NotifyFileSystemEventArgs(WatcherChangeTypes.Created, expandedName); 691watcher.NotifyFileSystemEventArgs(WatcherChangeTypes.Deleted, expandedName); 698watcher.NotifyFileSystemEventArgs(WatcherChangeTypes.Changed, expandedName); 725watcher.NotifyFileSystemEventArgs(WatcherChangeTypes.Deleted, expandedName); 740watcher.NotifyRenameEventArgs(WatcherChangeTypes.Renamed, expandedName, previousEventName); 746watcher.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; }