This topic has not yet been rated - Rate this topic

ProjectEventReceiver.OnSaved Method

Office 2010

A post-event handler occurs when a project is successfully saved to the Draft database.

Namespace:  Microsoft.Office.Project.Server.Events
Assembly:  Microsoft.Office.Project.Server.Events.Receivers (in Microsoft.Office.Project.Server.Events.Receivers.dll)
public virtual void OnSaved(
	PSContextInfo contextInfo,
	ProjectPostEventArgs e
)

Parameters

contextInfo
Type: Microsoft.Office.Project.Server.Library.PSContextInfo
Contains the Project Server context information.
e
Type: Microsoft.Office.Project.Server.Events.ProjectPostEventArgs
The data for the event.

The Saved event occurs when Microsoft Office Project Professional or any of the Project methods (CreateProjectFromTemplate, QueueAddToProject, QueueCreateProject, and so forth) saves to the Draft database.

For information about creating an event handler, see How to: Create a Project Server Event Handler and Log an Event.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Not fired on Project Create
Despite what the documentation here implies, this event does not seem to be fired on the first project save from Project Pro. Adding an OnCreated handler seems to be necessary to catch this case.