Bagikan melalui


PhysicalFilesWatcher Konstruktor

Definisi

Overload

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean)

Menginisialisasi instans PhysicalFilesWatcher yang mengawasi file di root. Membungkus instans FileSystemWatcher.

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean, ExclusionFilters)

Menginisialisasi instans PhysicalFilesWatcher yang mengawasi file di root. Membungkus instans FileSystemWatcher.

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean)

Sumber:
PhysicalFilesWatcher.cs
Sumber:
PhysicalFilesWatcher.cs
Sumber:
PhysicalFilesWatcher.cs
Sumber:
PhysicalFilesWatcher.cs

Menginisialisasi instans PhysicalFilesWatcher yang mengawasi file di root. Membungkus instans 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)

Parameter

root
String

Direktori akar untuk pengamat.

fileSystemWatcher
FileSystemWatcher

Pengamat terbungkus yang menonton root.

pollForChanges
Boolean

true ketika pengamat harus menggunakan polling untuk memicu instans yang IChangeToken dibuat oleh CreateFileChangeToken(String).

Berlaku untuk

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean, ExclusionFilters)

Sumber:
PhysicalFilesWatcher.cs
Sumber:
PhysicalFilesWatcher.cs
Sumber:
PhysicalFilesWatcher.cs
Sumber:
PhysicalFilesWatcher.cs

Menginisialisasi instans PhysicalFilesWatcher yang mengawasi file di root. Membungkus instans 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)

Parameter

root
String

Direktori akar untuk pengamat.

fileSystemWatcher
FileSystemWatcher

Pengamat terbungkus yang menonton root.

pollForChanges
Boolean

true ketika pengamat harus menggunakan polling untuk memicu instans yang IChangeToken dibuat oleh CreateFileChangeToken(String).

filters
ExclusionFilters

Menentukan file atau direktori mana yang dikecualikan. Pemberitahuan perubahan tidak dinaikkan ke ini.

Berlaku untuk