SyncOrchestrator::Cancel Method
Cancels the current synchronization session.
Assembly: Microsoft.Synchronization (in Microsoft.Synchronization.dll)
| Exception | Condition |
|---|---|
| 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: