Export (0) Print
Expand All

FileSyncOptions Enumeration

Provides options to configure the behavior of the file synchronization provider.

Namespace: Microsoft.Synchronization.Files
Assembly: Microsoft.Synchronization.Files (in microsoft.synchronization.files.dll)

[FlagsAttribute] 
public enum FileSyncOptions
/** @attribute FlagsAttribute() */ 
public enum FileSyncOptions
FlagsAttribute 
public enum FileSyncOptions

 Member nameDescription
CompareFileStreamsIf this value is set, the provider will compute a hash value for each file that is based on the contents of the whole file stream and use this value to compare files during change detection. This option is expensive and will slow synchronization, but provides more robust change detection. If this value is not set, an algorithm that compares modification times, file sizes, file names, and file attributes will be used to determine whether a file has changed. 
ExplicitDetectChangesIf this value is set, the provider will perform change detection only when DetectChanges is called. If this value is not set, change detection is implicitly done on the first call to the provider's GetChangeBatch or ProcessChangeBatch method. 
NoneIf this value is set, the provider will use its default configuration options. Setting any of the other flags overrides this setting. This is the default setting. 
RecycleConflictLoserFilesIf this value is set, the provider will move files that are conflict losers to the recycle bin. If this value is not set, the provider will move the files to a specified location. Or, if no location is specified, the files will be permanently deleted. 
RecycleDeletedFilesIf this value is set, the provider will move files deleted during change application to the recycle bin. If this value is not set, files will be permanently deleted. 
RecyclePreviousFileOnUpdatesIf this value is set, the provider will move files overwritten during change application to the recycle bin. If this value is not set, files will be overwritten in place and any data in the old file will be lost. 

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

A value that contains a combination of these options can be passed to FileSyncProvider to configure the way the file synchronization provider will handle different parts of the synchronization process.

Show:
© 2015 Microsoft