42 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 (40)
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)
410private void NotifyRenameEventArgs(WatcherChangeTypes action, ReadOnlySpan<char> name, ReadOnlySpan<char> oldName) 420private FileSystemEventHandler? GetHandler(WatcherChangeTypes changeType) 424case WatcherChangeTypes.Created: 426case WatcherChangeTypes.Deleted: 428case WatcherChangeTypes.Changed: 439private void NotifyFileSystemEventArgs(WatcherChangeTypes changeType, ReadOnlySpan<char> name) 452private void NotifyFileSystemEventArgs(WatcherChangeTypes changeType, string name) 530public WaitForChangedResult WaitForChanged(WatcherChangeTypes changeType) => 533public WaitForChangedResult WaitForChanged(WatcherChangeTypes changeType, int timeout) 544if ((changeType & (WatcherChangeTypes.Created | WatcherChangeTypes.Deleted | WatcherChangeTypes.Changed)) != 0) 553if ((changeType & WatcherChangeTypes.Created) != 0) 555if ((changeType & WatcherChangeTypes.Deleted) != 0) 557if ((changeType & WatcherChangeTypes.Changed) != 0) 560if ((changeType & WatcherChangeTypes.Renamed) != 0) 596if ((changeType & WatcherChangeTypes.Changed) != 0) 598if ((changeType & WatcherChangeTypes.Deleted) != 0) 600if ((changeType & WatcherChangeTypes.Created) != 0) 611public WaitForChangedResult WaitForChanged(WatcherChangeTypes changeType, TimeSpan timeout) =>
System\IO\FileSystemWatcher.Linux.cs (13)
935public const WatcherChangeTypes ErrorType = WatcherChangeTypes.All; 942public WatcherChangeTypes Type { get; } 944private WatcherEvent(WatcherChangeTypes type, WatchedDirectory watch, string name, WatchedDirectory? oldWatch = null, string? oldName = null) 960=> new WatcherEvent(WatcherChangeTypes.Deleted, dir, name); 963=> new WatcherEvent(WatcherChangeTypes.Created, dir, name); 966=> new WatcherEvent(WatcherChangeTypes.Changed, dir, name); 969=> new WatcherEvent(WatcherChangeTypes.Renamed, dir, name, oldDir, oldName); 1149case WatcherChangeTypes.Created: 1150case WatcherChangeTypes.Deleted: 1151case WatcherChangeTypes.Changed: 1157case WatcherChangeTypes.Renamed: 1161fsw.NotifyRenameEventArgs(WatcherChangeTypes.Renamed, name, oldName);
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; }