Skip to main content

Commands: GetConflictsAsync

Syntax

#Commands: GetConflictsAsync

GetConflictsAsync retrieves the existing conflict items.

Conflicts always exist in a destination file system.

Task<ItemsPage<ConflictItem>> GetConflictsAsync(int start = 0, int pageSize = 25);
Parameters
startintThe number of items to skip
pageSizeintThe maximum number of items to get

Return Value
Task<ItemsPage<ConflictItem>>A task that represents the asynchronous get operation. The task result is the ItemsPage object that contains the number of total results and the list of ConflictItem objects that represent the synchronization conflict.

Example

ItemsPage<ConflictItem> page = await store.AsyncFilesCommands.Synchronization
.GetConflictsAsync(0, 128);

page.Items.ForEach(x =>
Console.WriteLine("Synchronization of file {0} from {1} file system resulted in conflict",
x.FileName, x.RemoteServerUrl));