Edit

Share via


PhysicalFilesWatcher Constructors

Definition

Overloads

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean)

Initializes an instance of PhysicalFilesWatcher that watches files in root. Wraps an instance of FileSystemWatcher

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean, ExclusionFilters)

Initializes an instance of PhysicalFilesWatcher that watches files in root. Wraps an instance of FileSystemWatcher

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean)

Source:
PhysicalFilesWatcher.cs
Source:
PhysicalFilesWatcher.cs
Source:
PhysicalFilesWatcher.cs
Source:
PhysicalFilesWatcher.cs

Initializes an instance of PhysicalFilesWatcher that watches files in root. Wraps an instance of FileSystemWatcher

public:
 PhysicalFilesWatcher(System::String ^ root, System::IO::FileSystemWatcher ^ fileSystemWatcher, bool pollForChanges);
public PhysicalFilesWatcher (string root, System.IO.FileSystemWatcher? fileSystemWatcher, bool pollForChanges);
new Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher : string * System.IO.FileSystemWatcher * bool -> Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher
Public Sub New (root As String, fileSystemWatcher As FileSystemWatcher, pollForChanges As Boolean)

Parameters

root
String

Root directory for the watcher

fileSystemWatcher
FileSystemWatcher

The wrapped watcher that is watching root

pollForChanges
Boolean

True when the watcher should use polling to trigger instances of IChangeToken created by CreateFileChangeToken(String)

Applies to

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean, ExclusionFilters)

Source:
PhysicalFilesWatcher.cs
Source:
PhysicalFilesWatcher.cs
Source:
PhysicalFilesWatcher.cs
Source:
PhysicalFilesWatcher.cs

Initializes an instance of PhysicalFilesWatcher that watches files in root. Wraps an instance of FileSystemWatcher

public:
 PhysicalFilesWatcher(System::String ^ root, System::IO::FileSystemWatcher ^ fileSystemWatcher, bool pollForChanges, Microsoft::Extensions::FileProviders::Physical::ExclusionFilters filters);
public PhysicalFilesWatcher (string root, System.IO.FileSystemWatcher? fileSystemWatcher, bool pollForChanges, Microsoft.Extensions.FileProviders.Physical.ExclusionFilters filters);
new Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher : string * System.IO.FileSystemWatcher * bool * Microsoft.Extensions.FileProviders.Physical.ExclusionFilters -> Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher
Public Sub New (root As String, fileSystemWatcher As FileSystemWatcher, pollForChanges As Boolean, filters As ExclusionFilters)

Parameters

root
String

Root directory for the watcher

fileSystemWatcher
FileSystemWatcher

The wrapped watcher that is watching root

pollForChanges
Boolean

True when the watcher should use polling to trigger instances of IChangeToken created by CreateFileChangeToken(String)

filters
ExclusionFilters

Specifies which files or directories are excluded. Notifications of changes to are not raised to these.

Applies to