Bahasa

PhysicalFilesWatcher Konstruktor

Definisi

Overload

Nama Deskripsi
PhysicalFilesWatcher(String, FileSystemWatcher, Boolean)

Menginisialisasi instans PhysicalFilesWatcher baru kelas yang mengawasi file di root.

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean, ExclusionFilters)

Menginisialisasi instans PhysicalFilesWatcher baru kelas yang mengawasi file di root.

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean)

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

Menginisialisasi instans PhysicalFilesWatcher baru kelas yang mengawasi file di root.

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 mengawasi root.

pollForChanges
Boolean

true bagi poller untuk menggunakan polling untuk memicu instans yang IChangeToken dibuat oleh CreateFileChangeToken(String); jika tidak, false.

Berlaku untuk

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean, ExclusionFilters)

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

Menginisialisasi instans PhysicalFilesWatcher baru kelas yang mengawasi file di root.

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 mengawasi root.

pollForChanges
Boolean

true bagi poller untuk menggunakan polling untuk memicu instans yang IChangeToken dibuat oleh CreateFileChangeToken(String); jika tidak, false.

filters
ExclusionFilters

Kombinasi bitwise dari nilai enumerasi yang menentukan file atau direktori mana yang dikecualikan. Pemberitahuan perubahan ini tidak dimunculkan.

Berlaku untuk