FileSyncProvider.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);
}
/** @event */
public void add_DetectingChanges (EventHandler<DetectingChangesEventArgs> value)
/** @event */
public void remove_DetectingChanges (EventHandler<DetectingChangesEventArgs> value)
JScript supports the use of events, but not the declaration of new ones.
備註
變更偵測通過期間的每一個目錄都會引發這個事件一次,包括根目錄在內。針對該資料夾開始變更偵測之前,會引發此事件。
DetectingChangesEventArgs 類別會提供即將要分析之目錄的路徑。
請參閱
參考
FileSyncProvider 類別
FileSyncProvider 成員
Microsoft.Synchronization.Files 命名空間