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

Application.ProjectBeforeTaskNew 事件 (项目)Application.ProjectBeforeTaskNew Event (Project)

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

在创建一个或多个任务前发生。Occurs before one or more tasks are created.

语法Syntax

表达式ProjectBeforeTaskNew(* * pj,* *取消)expression. ProjectBeforeTaskNew( ** pj, ** Cancel )

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

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
pjpj必需RequiredProjectProject正在其中创建任务的项目。The project in which a task or tasks are being created.
CancelCancel必需RequiredBooleanBoolean的事件发生时。如果事件过程将此参数设置为True时,不创建新任务。False when the event occurs. If the event procedure sets this argument to True, the new task or tasks are not created.

返回值Return Value

nothingnothing

注解Remarks

将项目嵌入到另一个文档或应用程序中时,不会发生 Project 事件。Project events do not occur when the project is embedded in another document or application.

合并或插入或删除子项目,或使用自定义窗体进行更改时追加到项目中,资源池操作,过程数据时, ProjectBeforeTaskNew事件将不会发生。The ProjectBeforeTaskNew event doesn't occur when data is merged or appended into a project, during resource pool operations, when inserting or removing a subproject, or when changes have been made using a custom form.

© 2018 Microsoft