共用方式為


NotificationsEventReceiver.OnSent Method

A post-event handler that occurs after 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 OnSent ( _
    contextInfo As PSContextInfo, _
    e As NotificationsPostSendEventArgs _
)
'Usage
Dim instance As NotificationsEventReceiver
Dim contextInfo As PSContextInfo
Dim e As NotificationsPostSendEventArgs

instance.OnSent(contextInfo, e)
public virtual void OnSent(
    PSContextInfo contextInfo,
    NotificationsPostSendEventArgs e
)

Parameters

Remarks

Use the SubjectLine and xmlBody properties to get content of the notification sent. To change the notification content, create an OnSending pre-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.

See Also

Reference

NotificationsEventReceiver Class

NotificationsEventReceiver Members

Microsoft.Office.Project.Server.Events Namespace

OnSending

Other Resources

How to: Customize E-Mail for Project Server Notifications