共用方式為


NotificationsEventReceiver.OnSending 方法

Project Server 傳送通知或提醒通知發生前的事件處理常式。

命名空間:  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事件的範例,請參閱 < How to: 自訂用於 Project Server 通知的電子郵件

請參閱

參照

NotificationsEventReceiver 類別

NotificationsEventReceiver 成員

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

NotificationsEventReceiver.OnSent

其他資源

How to: 自訂用於 Project Server 通知的電子郵件