FileSyncProvider.DetectingChanges Event

Occurs when a directory is about to be analyzed during a change detection pass.

Namespace:  Microsoft.Synchronization.Files
Assembly:  Microsoft.Synchronization.Files (in Microsoft.Synchronization.Files.dll)

Syntax

'Declaration
Public Event DetectingChanges As EventHandler(Of DetectingChangesEventArgs)
'Usage
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>
JScript supports the use of events, but not the declaration of new ones.

Remarks

This event fires one time for every directory during a change detection pass, including the root directory. The event fires before change detection begins for that folder.

The DetectingChangesEventArgs class provides the path to the directory that is about to be analyzed.

See Also

Reference

FileSyncProvider Class

Microsoft.Synchronization.Files Namespace