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

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

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

在删除或替换工作分配之前发生。使用EventInfo对象参数。Occurs before an assignment is removed or replaced. Uses the EventInfo object parameter.

语法Syntax

表达式ProjectBeforeAssignmentDelete2(* * asg,* *信息)expression. ProjectBeforeAssignmentDelete2( ** asg, ** Info )

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

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
asgasg必需Required工作分配Assignment要删除的工作分配。The assignment that is being removed.
信息Info必需RequiredEventInfoEventInfo在事件发生时,EventInfo.Cancel 为False 。如果事件过程将此参数设置为True,则不会删除该工作分配。如果工作分配的删除是由于相关联的资源被删除而引起的信息将被忽略。EventInfo.Cancel is False when the event occurs. If the event procedure sets this argument to True, the assignment is not removed. If the assignment is being removed because the associated resource has been deleted, Info is ignored.

返回值Return Value

nothingnothing

注解Remarks

ProjectBeforeAssignmentDelete2还激发事件时将资源分配到的任务与资源分配,因为"分配资源"的工作都会被删除之前创建新任务。The ProjectBeforeAssignmentDelete2 event also fires when assigning a resource to a task with no resource assignments, because an "Unassigned Resource" assignment is removed before the new assignment is created.

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

工作分配删除在资源使用状况视图中执行拖放操作的结果或使用自定义窗体进行更改时, ProjectBeforeAssignmentDelete2事件将不会发生。The ProjectBeforeAssignmentDelete2 event doesn't occur when an assignment is deleted as the result of a drag-and-drop operation in the Resource Usage view, or when changes have been made using a custom form.

© 2018 Microsoft