title | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | |
---|---|---|---|---|---|---|
Application.ProjectBeforeAssignmentDelete2 event (Project) |
project-server |
|
2753a140-e01b-b2c1-233f-f9f265737b47 |
06/08/2017 |
medium |
Occurs before an assignment is removed or replaced. Uses the EventInfo object parameter.
expression. ProjectBeforeAssignmentDelete2
( _asg_
, _Info_
)
expression A variable that represents an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
asg | Required | Assignment | The assignment that is being removed. |
Info | Required | EventInfo | 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. |
Nothing
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 events don't occur when the project is embedded in another document or application.
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.
[!includeSupport and feedback]