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)
11
private readonly
WatcherChangeTypes
_changeType;
18
public FileSystemEventArgs(
WatcherChangeTypes
changeType, string directory, string? name)
45
/// Gets one of the <see cref='System.IO.
WatcherChangeTypes
'/> values.
47
public
WatcherChangeTypes
ChangeType
System\IO\FileSystemWatcher.cs (20)
408
private void NotifyRenameEventArgs(
WatcherChangeTypes
action, ReadOnlySpan<char> name, ReadOnlySpan<char> oldName)
418
private FileSystemEventHandler? GetHandler(
WatcherChangeTypes
changeType)
422
case
WatcherChangeTypes
.Created:
424
case
WatcherChangeTypes
.Deleted:
426
case
WatcherChangeTypes
.Changed:
437
private void NotifyFileSystemEventArgs(
WatcherChangeTypes
changeType, ReadOnlySpan<char> name)
450
private void NotifyFileSystemEventArgs(
WatcherChangeTypes
changeType, string name)
528
public WaitForChangedResult WaitForChanged(
WatcherChangeTypes
changeType) =>
531
public WaitForChangedResult WaitForChanged(
WatcherChangeTypes
changeType, int timeout)
542
if ((changeType & (
WatcherChangeTypes
.Created |
WatcherChangeTypes
.Deleted |
WatcherChangeTypes
.Changed)) != 0)
551
if ((changeType &
WatcherChangeTypes
.Created) != 0)
553
if ((changeType &
WatcherChangeTypes
.Deleted) != 0)
555
if ((changeType &
WatcherChangeTypes
.Changed) != 0)
558
if ((changeType &
WatcherChangeTypes
.Renamed) != 0)
594
if ((changeType &
WatcherChangeTypes
.Changed) != 0)
596
if ((changeType &
WatcherChangeTypes
.Deleted) != 0)
598
if ((changeType &
WatcherChangeTypes
.Created) != 0)
609
public WaitForChangedResult WaitForChanged(
WatcherChangeTypes
changeType, TimeSpan timeout) =>
System\IO\FileSystemWatcher.Linux.cs (7)
647
watcher.NotifyFileSystemEventArgs(
WatcherChangeTypes
.Deleted, previousEventName);
681
watcher.NotifyFileSystemEventArgs(
WatcherChangeTypes
.Created, expandedName);
691
watcher.NotifyFileSystemEventArgs(
WatcherChangeTypes
.Deleted, expandedName);
698
watcher.NotifyFileSystemEventArgs(
WatcherChangeTypes
.Changed, expandedName);
725
watcher.NotifyFileSystemEventArgs(
WatcherChangeTypes
.Deleted, expandedName);
740
watcher.NotifyRenameEventArgs(
WatcherChangeTypes
.Renamed, expandedName, previousEventName);
746
watcher.NotifyFileSystemEventArgs(
WatcherChangeTypes
.Created, expandedName);
System\IO\RenamedEventArgs.cs (1)
17
public RenamedEventArgs(
WatcherChangeTypes
changeType, string directory, string? name, string? oldName)
System\IO\WaitForChangedResult.cs (2)
8
internal WaitForChangedResult(
WatcherChangeTypes
changeType, string? name, string? oldName, bool timedOut)
19
public
WatcherChangeTypes
ChangeType { get; set; }