Share via


PhysicalFilesWatcher Constructors

Definition

Overloads

Name Description
PhysicalFilesWatcher(String, FileSystemWatcher, Boolean)

Initializes a new instance of the PhysicalFilesWatcher class that watches files in root. Wraps an instance of FileSystemWatcher.

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean, ExclusionFilters)

Initializes a new instance of the PhysicalFilesWatcher class 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 a new instance of the PhysicalFilesWatcher class 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

The root directory for the watcher.

fileSystemWatcher
FileSystemWatcher

The wrapped watcher that's watching root.

pollForChanges
Boolean

true for the poller to use polling to trigger instances of IChangeToken created by CreateFileChangeToken(String); otherwise, false.

Applies to

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean, ExclusionFilters)

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

Initializes a new instance of the PhysicalFilesWatcher class 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

The root directory for the watcher.

fileSystemWatcher
FileSystemWatcher

The wrapped watcher that is watching root.

pollForChanges
Boolean

true for the poller to use polling to trigger instances of IChangeToken created by CreateFileChangeToken(String); otherwise, false.

filters
ExclusionFilters

A bitwise combination of the enumeration values that specifies which files or directories are excluded. Notifications of changes to these are not raised.

Applies to