Compartir a través de


NotificationsEventReceiver.OnSending Method

A pre-event handler that 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

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: Create a Project Server Event Handler and Log an Event. 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

Other Resources

How to: Customize E-Mail for Project Server Notifications