Application.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.


expressionexpression. ProjectBeforePublish( _pj_, _Cancel_ )

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


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

返回值Return value



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