ProjectEventReceiver.OnSaved Method
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)
Syntax
'Declaration
Public Overridable Sub OnSaved ( _
contextInfo As PSContextInfo, _
e As ProjectPostEventArgs _
)
'Usage
Dim instance As ProjectEventReceiver
Dim contextInfo As PSContextInfo
Dim e As ProjectPostEventArgs
instance.OnSaved(contextInfo, e)
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.
Remarks
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.