Partager via


Événement DetectingChanges

Se produit lorsqu'un répertoire est sur le point d'être analysé pendant un passe de détection de modifications.

Espace de noms :  Microsoft.Synchronization.Files
Assembly :  Microsoft.Synchronization.Files (dans Microsoft.Synchronization.Files.dll)

Syntaxe

'Déclaration
Public Event DetectingChanges As EventHandler(Of DetectingChangesEventArgs)
'Utilisation
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>

Notes

Cet événement est déclenché une fois pour chaque répertoire pendant un passe de détection de modifications, y compris le répertoire racine. L'événement se déclenche avant que la détection de modifications ne commence pour ce dossier.

La classe DetectingChangesEventArgs fournit le chemin d'accès du répertoire qui va être analysé.

Voir aussi

Référence

FileSyncProvider Classe

Membres FileSyncProvider

Espace de noms Microsoft.Synchronization.Files