共用方式為


DetectingChanges 事件

發生在變更偵測通過期間即將要分析目錄時。

命名空間:  Microsoft.Synchronization.Files
組件:  Microsoft.Synchronization.Files (在 Microsoft.Synchronization.Files.dll 中)

語法

'宣告
Public Event DetectingChanges As EventHandler(Of DetectingChangesEventArgs)
'用途
Dim instance As FileSyncProvider
Dim handler As EventHandler(Of DetectingChangesEventArgs)

AddHandler instance.DetectingChanges, handler
public event EventHandler<DetectingChangesEventArgs> DetectingChanges
public:
 event EventHandler<DetectingChangesEventArgs^>^ DetectingChanges {
    void add (EventHandler<DetectingChangesEventArgs^>^ value);
    void remove (EventHandler<DetectingChangesEventArgs^>^ value);
}
member DetectingChanges : IEvent<EventHandler<DetectingChangesEventArgs>,
    DetectingChangesEventArgs>

備註

變更偵測通過期間的每一個目錄都會引發這個事件一次,包括根目錄在內。針對該資料夾開始變更偵測之前,會引發此事件。

DetectingChangesEventArgs 類別會提供即將要分析之目錄的路徑。

請參閱

參考

FileSyncProvider類別

FileSyncProvider 成員

Microsoft.Synchronization.Files 命名空間