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)
Console.WriteLine("-- Constraint conflict detected for item " + e.DestinationChange.ItemId.ToString());
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?