PhysicalFilesWatcher 构造函数

定义

重载

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean)

初始化监视 root 中的文件的 PhysicalFilesWatcher 的实例。 包装 FileSystemWatcher 的实例。

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean, ExclusionFilters)

初始化监视 root 中的文件的 PhysicalFilesWatcher 的实例。 包装 FileSystemWatcher 的实例。

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean)

Source:
PhysicalFilesWatcher.cs
Source:
PhysicalFilesWatcher.cs
Source:
PhysicalFilesWatcher.cs
Source:
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)

Source:
PhysicalFilesWatcher.cs
Source:
PhysicalFilesWatcher.cs
Source:
PhysicalFilesWatcher.cs
Source:
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

指定要排除的文件或目录。 不会向它们提出更改通知。

适用于