SyncOrchestrator.Cancel Method
Cancels the current synchronization session.
Namespace: Microsoft.Synchronization
Assembly: Microsoft.Synchronization (in microsoft.synchronization.dll)
Syntax
'Declaration
Public Sub Cancel
'Usage
Dim instance As SyncOrchestrator
instance.Cancel
public void Cancel ()
public:
void Cancel ()
public void Cancel ()
public function Cancel ()
Exceptions
Exception type | Condition |
---|---|
State is any value other than Downloading or Uploading. Be aware that this means Cancel can only be called one time for each session. |
Remarks
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.
See Also
Reference
SyncOrchestrator Class
SyncOrchestrator Members
Microsoft.Synchronization Namespace