Share via


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);
}
/** @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.

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
FileSyncProvider Members
Microsoft.Synchronization.Files Namespace