Hi,
When dealing with file sync conflicts, I use the SyncCallbacks.ItemConflicting event.
I want to know the full filename of the conflict file. However, I can only get an Item ID from the EventArgs. How can I get the filename by Item ID? Thanks.
Here is related code:
FileSyncProvider destinationProvider = null;
destinationProvider = new FileSyncProvider(
destinationReplicaRootPath, filter, options);
SyncCallbacks destinationCallbacks = destinationProvider.DestinationCallbacks;
destinationCallbacks.ItemConflicting += new EventHandler<ItemConflictingEventArgs>(destinationCallbacks_ItemConflicting);
static void destinationCallbacks_ItemConflicting(object sender, ItemConflictingEventArgs e)
{
e.SetResolutionAction(ConflictResolutionAction.SourceWins);
Console.WriteLine("-- Constraint conflict detected for item " + e.DestinationChange.ItemId.ToString());
}