ProjectBeforePublish 事件 (Project)Application.ProjectBeforePublish event (Project)

发布操作放在服务器队列之前发生。Occurs before a Publish operation is placed on the server queue. ProjectBeforePublish 事件可以取消。The ProjectBeforePublish event can be cancelled. 项目专家。Project Professional only.

语法Syntax

expressionexpression. ProjectBeforePublish( _pj_, _Cancel_ )

expression:表示 Application 对象的变量。expression A variable that represents an Application object.

参数Parameters

名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
pjpj 必需Required ProjectProject Project 对象。Project object.
CancelCancel 必需Required BooleanBoolean 要取消 发布 工作。True to cancel the Publish job.

返回值Return value

NothingNothing

注解Remarks

ProjectBeforePublish事件通常用于确定是否满足特定条件, 如果不满足条件则取消发布。The ProjectBeforePublish event is commonly used to determine whether certain conditions are satisfied and to cancel publishing if the conditions are not met.

支持和反馈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.