NotificationsEventReceiver.OnSending Method
Pre-event occurs before Project Server sends an alert or reminder notification.
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 OnSending ( _
contextInfo As PSContextInfo, _
e As NotificationsPreSendEventArgs _
)
'Usage
Dim instance As NotificationsEventReceiver
Dim contextInfo As PSContextInfo
Dim e As NotificationsPreSendEventArgs
instance.OnSending(contextInfo, e)
public virtual void OnSending(
PSContextInfo contextInfo,
NotificationsPreSendEventArgs e
)
Parameters
- contextInfo
Type: Microsoft.Office.Project.Server.Library.PSContextInfo
Remarks
Use the SubjectLine and xmlBody properties to get the notification content. You can change the notification content in an OnSending event handler. The Notification class lists alerts and reminders.
For information about creating an event handler, see How to: Write and Debug a Project Server Event Handler. For an example that changes e-mail using the NotificationsSending event, see How to: Customize E-Mail for Project Server Notifications.
See Also
Reference
NotificationsEventReceiver Class
NotificationsEventReceiver Members
Microsoft.Office.Project.Server.Events Namespace
NotificationsEventReceiver.OnSent