FileSyncProvider::PreviewMode Property

Gets or sets a value that indicates whether the provider is in preview mode.

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

public:
property bool PreviewMode {
	bool get ();
	void set (bool value);
}

Property Value

Type: System::Boolean
true if the provider is in preview mode; otherwise, false. The default is false.

ExceptionCondition
ObjectDisposedException

The object has been disposed or was not property initialized.

If the provider is in preview mode, all synchronization actions will be performed as if for an actual synchronization session; however, no changes will be applied. This means that progress notifications will still be sent out for changes that would have been applied and change detection will be performed. Because of this, using preview mode could potentially be an expensive operation.

For information about how to use preview mode to show incremental synchronization progress to the user, see Reporting File Synchronization Progress.

Show: