PhysicalFilesWatcher Konstruktor
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
| Nama | Deskripsi |
|---|---|
| PhysicalFilesWatcher(String, FileSystemWatcher, Boolean) |
Menginisialisasi instans PhysicalFilesWatcher baru kelas yang mengawasi file di |
| PhysicalFilesWatcher(String, FileSystemWatcher, Boolean, ExclusionFilters) |
Menginisialisasi instans PhysicalFilesWatcher baru kelas yang mengawasi file di |
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.