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