CrmOutlookService.Sync 方法

应用到: CRM 2015 on-prem, CRM Online

Triggers a synchronization event between 带脱机访问功能的 Microsoft Dynamics CRM for Microsoft Office Outlook in Microsoft Office Outlook and the Microsoft Dynamics CRM server.

命名空间: Microsoft.Crm.Outlook.Sdk
程序集: Microsoft.Crm.Outlook.Sdk (在 Microsoft.Crm.Outlook.Sdk.dll 中)

语法

声明
Public Sub Sync ( _
    syncType As OutlookSyncType _
)
public void Sync (
    OutlookSyncType syncType
)

参数

  • syncType
    Type: OutlookSyncType. The target to which synchronization needs to be triggered: Outlook, the Microsoft Dynamics CRM Address Book Provider or the Offline database.

备注

Triggers a synchronization event between 带脱机访问功能的 Microsoft Dynamics CRM for Microsoft Office Outlook and the Microsoft Dynamics CRM 服务器. The synchronization occurs in the background and there is no user interaction. If there is a failure during synchronization there is no feedback provided. The method is synchronous and will not return until the synchronization operation is completed.

Throws an InvalidOperationException if the client is not loaded, CRM for Outlook client (no offline access) is installed or if the client is offline.

Throws an ArgumentException if the syncType is not supported.

线程安全性

此类型的所有公共静态(Visual Basic 中的 Shared)成员都是线程安全成员。不保证任何实例成员是线程安全成员。

平台

开发平台

Windows Vista、Windows Server 2003 和

目标平台

Windows Vista,Windows XP

另请参阅

参考

CrmOutlookService 类
CrmOutlookService 成员
Microsoft.Crm.Outlook.Sdk 命名空间

其他资源

Sample: Use Outlook Methods

Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.