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)

初始化在 root 中監看檔案的 PhysicalFilesWatcher 執行個體。Initializes an instance of PhysicalFilesWatcher that watches files in root. 包裝 FileSystemWatcher 的執行個體Wraps an instance of FileSystemWatcher

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean, ExclusionFilters)

初始化在 root 中監看檔案的 PhysicalFilesWatcher 執行個體。Initializes an instance of PhysicalFilesWatcher that watches files in root. 包裝 FileSystemWatcher 的執行個體Wraps an instance of FileSystemWatcher

方法

CreateFileChangeToken(String)

針對所有符合 filter 的檔案和目錄,建立 IChangeToken 的執行個體Creates an instance of IChangeToken for all files and directories that match the filter

萬用字元模式包含在建構函式內指定的根目錄中Globbing patterns are relative to the root directory given in the constructor 執行個體時提供 SQL Server 登入。. 萬用字元模式的解譯方式Globbing patterns are interpreted by 執行個體時提供 SQL Server 登入。.

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()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於