NotificationsEventReceiver.OnSending 方法

在项目服务器发送的警告或提醒通知之前发生前的事件处理程序。

命名空间:  Microsoft.Office.Project.Server.Events
程序集:  Microsoft.Office.Project.Server.Events.Receivers(位于 Microsoft.Office.Project.Server.Events.Receivers.dll 中)

语法

声明
Public Overridable Sub OnSending ( _
    contextInfo As PSContextInfo, _
    e As NotificationsPreSendEventArgs _
)
用法
Dim instance As NotificationsEventReceiver
Dim contextInfo As PSContextInfo
Dim e As NotificationsPreSendEventArgs

instance.OnSending(contextInfo, e)
public virtual void OnSending(
    PSContextInfo contextInfo,
    NotificationsPreSendEventArgs e
)

参数

备注

SubjectLinexmlBody属性用于获取通知内容。您可以更改在OnSending事件处理程序中的通知内容。Notification类列出的通知和提醒。

有关创建事件处理程序的信息,请参阅How to: Create a Project Server Event Handler and Log an Event。更改电子邮件使用的NotificationsSending事件的示例,请参见如何: 自定义项目服务器通知的电子邮件

另请参阅

引用

NotificationsEventReceiver 类

NotificationsEventReceiver 成员

Microsoft.Office.Project.Server.Events 命名空间

NotificationsEventReceiver.OnSent

其他资源

如何: 自定义项目服务器通知的电子邮件