Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SyncOrchestrator.Cancel Method

Cancels the current synchronization session.

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

public void Cancel()

ExceptionCondition
InvalidOperationException

State is any value other than Downloading or Uploading. Be aware that this means Cancel can only be called one time for each session.

This method sets State to Canceling.

Cancel stops the synchronization session from performing any more work. It does not roll back any changes that have already been made.

After Cancel is called, all Sync Framework methods throw SyncAbortedException.

Show:
© 2015 Microsoft