CrmOutlookService.GoOffline Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Takes Microsoft Dynamics 365 for Microsoft Office Outlook with Offline Access into an offline state and triggers a synchronization of the offline database with the online server.
public:
void GoOffline();
public void GoOffline ();
member this.GoOffline : unit -> unit
Public Sub GoOffline ()
Remarks
This method is synchronous and triggers UI interaction with the user. If there are errors when taking Dynamics 365 for Outlook offline, the method will not return until the error dialog box is dismissed.
Because this function triggers UI interaction with the user it cannot be used within a plugin. This can cause the process to stop responding or cause unexpected behavior.
Throws an InvalidOperationException
if the client is not loaded, Dynamics 365 for Outlook client (no offline access) is installed or if the client is offline.