PhysicalFilesWatcher 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| PhysicalFilesWatcher(String, FileSystemWatcher, Boolean) |
初始化一個新的類別實例 PhysicalFilesWatcher ,該類別在 中監控檔案 |
| PhysicalFilesWatcher(String, FileSystemWatcher, Boolean, ExclusionFilters) |
初始化一個新的類別實例 PhysicalFilesWatcher ,該類別在 中監控檔案 |
PhysicalFilesWatcher(String, FileSystemWatcher, Boolean)
初始化一個新的類別實例 PhysicalFilesWatcher ,該類別在 中監控檔案 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)
參數
- root
- String
監視者的根目錄。
- fileSystemWatcher
- FileSystemWatcher
那個被包裹著、在看著 root的守望者。
- pollForChanges
- Boolean
true輪詢器可利用輪詢觸發由 創建IChangeToken的實例CreateFileChangeToken(String);否則, false。
適用於
PhysicalFilesWatcher(String, FileSystemWatcher, Boolean, ExclusionFilters)
初始化一個新的類別實例 PhysicalFilesWatcher ,該類別在 中監控檔案 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)
參數
- root
- String
監視者的根目錄。
- fileSystemWatcher
- FileSystemWatcher
那個被包裹的觀察者正在觀察 root。
- pollForChanges
- Boolean
true輪詢器可利用輪詢觸發由 創建IChangeToken的實例CreateFileChangeToken(String);否則, false。
- filters
- ExclusionFilters
以位元組合列出的列舉值,指定哪些檔案或目錄被排除。 這些變更的通知不會被提出。