Share via


FileSyncProvider.AppliedChange Event

Occurs when a file change has been applied.

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

Syntax

'Declaration
Public Event AppliedChange As EventHandler(Of AppliedChangeEventArgs)
'Usage
Dim instance As FileSyncProvider
Dim handler As EventHandler(Of AppliedChangeEventArgs)

AddHandler instance.AppliedChange, handler
public event EventHandler<AppliedChangeEventArgs> AppliedChange
public:
 event EventHandler<AppliedChangeEventArgs^>^ AppliedChange {
    void add (EventHandler<AppliedChangeEventArgs^>^ value);
    void remove (EventHandler<AppliedChangeEventArgs^>^ value);
}
member AppliedChange : IEvent<EventHandler<AppliedChangeEventArgs>,
    AppliedChangeEventArgs>
JScript supports the use of events, but not the declaration of new ones.

Remarks

This event will be raised only when a change affects file data on the destination replica and not when a change affects only the metadata for a file. For example, if an update-update conflict is detected and the file on the destination system is picked as the winner, no change is applied to the destination and this event will not be fired. Similarly, propagating a tombstone from the source to the destination causes only a metadata update and no change to the destination file system. In this case, this event will not be fired.

The AppliedChangeEventArgs class provides the type of the change, the new file path, and the file path as it was before the change was applied.

See Also

Reference

FileSyncProvider Class

Microsoft.Synchronization.Files Namespace