Stop Method
Immediately ends synchronizing a user’s folders using the specified synchronization profile. This method does not undo any synchronization that has already occurred.
expression.End
expression Required. An expression that returns one of the objects in the Applies To list.
Example
This Microsoft Visual Basic/Visual Basic for Applications example interrupts synchronization of the user’s second synchronization profile in response to the user clicking a button on a form. The mySyncObj
variable is declared as a public variable so it can be referenced by other modules.
Public mySyncObj As Outlook.SyncObject
Private Sub Command2_Click()
MsgBox "Synchronization stopped by user."
mySyncObj.Stop
End Sub