Table of contents
TOC
折叠目录
展开目录

Application.PresentationSync 事件 (PowerPoint)Application.PresentationSync Event (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

在作为文档工作空间一部分的演示文稿的本地副本与服务器上的副本进行同步时发生此事件。提供有关演示文稿的成功或失败的重要状态信息。Occurs when the local copy of a presentation that is part of a Document Workspace is synchronized with the copy on the server. Provides important status information regarding the success or failure of the synchronization of the presentation.

语法Syntax

表达式PresentationSync(展示SyncEventType )expression. PresentationSync( Pres, SyncEventType )

表达式_一个表示应用程序对象的变量。_expression A variable that represents an Application object.

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
预备条件Pres必需Required演示文稿Presentation正在同步的演示文稿。The presentation that is being synchronized.
SyncEventTypeSyncEventType必需RequiredMsoSyncEventTypeMsoSyncEventType同步的状态。The status of the synchronization.

注解Remarks

SyncEventType_参数值可以是其中一个MsoSyncEventType常量。The _SyncEventType parameter value can be one of these MsoSyncEventType constants.

|| |:-----| |msoSyncEventDownloadInitiatedmsoSyncEventDownloadInitiated| |msoSyncEventDownloadSucceededmsoSyncEventDownloadSucceeded| |msoSyncEventDownloadFailedmsoSyncEventDownloadFailed| |msoSyncEventUploadInitiatedmsoSyncEventUploadInitiated| |msoSyncEventUploadSucceededmsoSyncEventUploadSucceeded| |msoSyncEventUploadFailedmsoSyncEventUploadFailed| |msoSyncEventDownloadNoChangemsoSyncEventDownloadNoChange| |msoSyncEventOfflinemsoSyncEventOffline|

示例Example

以下示例显示了文档工作区中的某个演示文稿同步失败时显示的消息。The following example displays a message if the synchronization of a presentation in a Document Workspace fails.

Private Sub app_PresentationSync(ByVal Pres As Presentation, _
        ByVal SyncEventType As Office.MsoSyncEventType)

    If SyncEventType = msoSyncEventDownloadFailed Or _
            SyncEventType = msoSyncEventUploadFailed Then

        MsgBox "Synchronization failed. " &; _
            "Please contact your administrator, " &; vbCrLf &; _
            "or try again later."

    End If

End Sub

另请参阅See also

概念Concepts

Application 对象Application Object

© 2018 Microsoft