PhysicalFilesWatcher 類別

定義

監看實體檔案系統是否有變更的檔案監看員。

在建立、變更、重新命名或刪除檔案時,於 IChangeToken 上觸發事件。

public ref class PhysicalFilesWatcher : IDisposable
public class PhysicalFilesWatcher : IDisposable
type PhysicalFilesWatcher = class
    interface IDisposable
Public Class PhysicalFilesWatcher
Implements IDisposable
繼承
PhysicalFilesWatcher
實作

建構函式

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean)

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

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean, ExclusionFilters)

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

方法

CreateFileChangeToken(String)

為所有符合 filter 的檔案及目錄建立 IChangeToken 的執行個體。

萬用字元模式相對於建構函式 PhysicalFilesWatcher(String, FileSystemWatcher, Boolean) 中指定的根目錄。 萬用字元模式會由 Matcher 轉譯。

Dispose()

處置提供者。 處置提供者之後,可能不會觸發變更權杖。

Dispose(Boolean)

處置提供者。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
Finalize()

PhysicalFilesWatcher 的解構函式。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於