OnSaveFailed method
Collapse the table of content
Expand the table of content

ProjectEventReceiver.OnSaveFailed method

Office 2013 and later

A post-event handler occurs when an attempt to save a project to the Draft database fails.

Namespace:  Microsoft.Office.Project.Server.Events
Assembly:  Microsoft.Office.Project.Server.Events.Receivers (in Microsoft.Office.Project.Server.Events.Receivers.dll)

public virtual void OnSaveFailed(
	PSContextInfo contextInfo,
	ProjectPostEventArgs e


Type: Microsoft.Office.Project.Server.Library.PSContextInfo

Contains the Project Server context information.

Type: Microsoft.Office.Project.Server.Events.ProjectPostEventArgs

The data for the event.

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

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

© 2016 Microsoft