PhysicalFilesWatcher 类
定义
监视物理文件系统的更改的文件观察程序。A file watcher that watches a physical filesystem for changes.
创建、更改、重命名或删除文件时,在 IChangeToken 上触发事件。Triggers events on IChangeToken when files are created, change, renamed, or deleted.
public ref class PhysicalFilesWatcher : IDisposable
public class PhysicalFilesWatcher : IDisposable
type PhysicalFilesWatcher = class
interface IDisposable
Public Class PhysicalFilesWatcher
Implements IDisposable
- 继承
-
PhysicalFilesWatcher
- 实现
构造函数
| PhysicalFilesWatcher(String, FileSystemWatcher, Boolean) |
初始化监视 |
| PhysicalFilesWatcher(String, FileSystemWatcher, Boolean, ExclusionFilters) |
初始化监视 |
方法
| CreateFileChangeToken(String) |
为匹配 glob 模式与构造函数 PhysicalFilesWatcher(String, FileSystemWatcher, Boolean) 中给出的根目录有关。Globbing patterns are relative to the root directory given in the constructor PhysicalFilesWatcher(String, FileSystemWatcher, Boolean). glob 模式由 Matcher 进行解释。Globbing patterns are interpreted by Matcher. |
| Dispose() |
释放提供程序。Disposes the provider. 释放提供程序后,可能不会触发更改令牌。Change tokens may not trigger after the provider is disposed. |
| Dispose(Boolean) |
释放提供程序。Disposes the provider. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| Finalize() |
PhysicalFilesWatcher 的析构函数。Destructor for PhysicalFilesWatcher. |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |