PhysicalFilesWatcher 建構函式

定義

多載

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean)

初始化在 root 中監看檔案的 PhysicalFilesWatcher 執行個體。 包裝 FileSystemWatcher 的執行個體。

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean, ExclusionFilters)

初始化在 root 中監看檔案的 PhysicalFilesWatcher 執行個體。 包裝 FileSystemWatcher 的執行個體。

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean)

來源:
PhysicalFilesWatcher.cs
來源:
PhysicalFilesWatcher.cs
來源:
PhysicalFilesWatcher.cs
來源:
PhysicalFilesWatcher.cs

初始化在 root 中監看檔案的 PhysicalFilesWatcher 執行個體。 包裝 FileSystemWatcher 的執行個體。

public:
 PhysicalFilesWatcher(System::String ^ root, System::IO::FileSystemWatcher ^ fileSystemWatcher, bool pollForChanges);
public PhysicalFilesWatcher (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

當監看式應使用輪詢來觸發 CreateFileChangeToken(String) 所建立的 IChangeToken 執行個體時,為 true

適用於

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean, ExclusionFilters)

來源:
PhysicalFilesWatcher.cs
來源:
PhysicalFilesWatcher.cs
來源:
PhysicalFilesWatcher.cs
來源:
PhysicalFilesWatcher.cs

初始化在 root 中監看檔案的 PhysicalFilesWatcher 執行個體。 包裝 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);
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

當監看式應使用輪詢來觸發 CreateFileChangeToken(String) 所建立的 IChangeToken 執行個體時,為 true

filters
ExclusionFilters

指定要排除哪些檔案或目錄。 不會引發這些項目的變更通知。

適用於