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)
422
private void NotifyRenameEventArgs(
WatcherChangeTypes
action, ReadOnlySpan<char> name, ReadOnlySpan<char> oldName)
432
private FileSystemEventHandler? GetHandler(
WatcherChangeTypes
changeType)
436
case
WatcherChangeTypes
.Created:
438
case
WatcherChangeTypes
.Deleted:
440
case
WatcherChangeTypes
.Changed:
451
private void NotifyFileSystemEventArgs(
WatcherChangeTypes
changeType, ReadOnlySpan<char> name)
464
private void NotifyFileSystemEventArgs(
WatcherChangeTypes
changeType, string name)
542
public WaitForChangedResult WaitForChanged(
WatcherChangeTypes
changeType) =>
545
public WaitForChangedResult WaitForChanged(
WatcherChangeTypes
changeType, int timeout)
556
if ((changeType & (
WatcherChangeTypes
.Created |
WatcherChangeTypes
.Deleted |
WatcherChangeTypes
.Changed)) != 0)
565
if ((changeType &
WatcherChangeTypes
.Created) != 0)
567
if ((changeType &
WatcherChangeTypes
.Deleted) != 0)
569
if ((changeType &
WatcherChangeTypes
.Changed) != 0)
572
if ((changeType &
WatcherChangeTypes
.Renamed) != 0)
608
if ((changeType &
WatcherChangeTypes
.Changed) != 0)
610
if ((changeType &
WatcherChangeTypes
.Deleted) != 0)
612
if ((changeType &
WatcherChangeTypes
.Created) != 0)
623
public WaitForChangedResult WaitForChanged(
WatcherChangeTypes
changeType, TimeSpan timeout) =>
System\IO\FileSystemWatcher.Linux.cs (7)
633
watcher.NotifyFileSystemEventArgs(
WatcherChangeTypes
.Deleted, previousEventName);
667
watcher.NotifyFileSystemEventArgs(
WatcherChangeTypes
.Created, expandedName);
677
watcher.NotifyFileSystemEventArgs(
WatcherChangeTypes
.Deleted, expandedName);
684
watcher.NotifyFileSystemEventArgs(
WatcherChangeTypes
.Changed, expandedName);
711
watcher.NotifyFileSystemEventArgs(
WatcherChangeTypes
.Deleted, expandedName);
726
watcher.NotifyRenameEventArgs(
WatcherChangeTypes
.Renamed, expandedName, previousEventName);
732
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; }