SyncObject 事件 (Outlook)SyncObject.SyncStart event (Outlook)

在 Microsoft Outlook 开始使用指定的发送 \ 接收组同步用户文件夹时发生。Occurs when Microsoft Outlook begins synchronizing a user's folders using the specified Send\Receive group.


expressionexpression. SyncStart

_表达式_一个代表SyncObject对象的变量。expression A variable that represents a SyncObject object.


该事件在 Microsoft Visual Basic Scripting Edition (VBScript) 中不可用。This event is not available in Microsoft Visual Basic Scripting Edition (VBScript).


本 Visual Basic for Applications (VBA) 示例显示一条消息,告知用户同步可能需要很长时间。This Visual Basic for Applications (VBA) example displays a message telling the user that the synchronization might take a long time. 本示例代码必须放在类模块中,而且必须先调用 Initialize_handler 例程,然后 Microsoft Outlook 方可调用该事件过程。The sample code must be placed in a class module, and the Initialize_handler routine must be called before the event procedure can be called by Microsoft Outlook.

Dim WithEvents mySync As Outlook.SyncObject 
Sub Initialize_handler() 
 Set mySync = Application.Session.SyncObjects.Item(1) 
End Sub 
Private Sub mySync_SyncStart() 
 MsgBox "Synchronization is about to start. It might take a long time to complete." 
End Sub

另请参阅See also

SyncObject 对象SyncObject Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.