共用方式為


NotificationsEventReceiver.OnSent 方法

在 Project Server 之後,就會發生後置事件處理常式會傳送通知或提醒通知。

命名空間:  Microsoft.Office.Project.Server.Events
組件:  Microsoft.Office.Project.Server.Events.Receivers (在 Microsoft.Office.Project.Server.Events.Receivers.dll 中)

語法

'宣告
Public Overridable Sub OnSent ( _
    contextInfo As PSContextInfo, _
    e As NotificationsPostSendEventArgs _
)
'用途
Dim instance As NotificationsEventReceiver
Dim contextInfo As PSContextInfo
Dim e As NotificationsPostSendEventArgs

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

參數

備註

使用SubjectLinexmlBody屬性來取得傳送通知的內容。若要變更的通知內容,建立OnSending前的事件處理常式。Notification類別列出警告與提醒。

如需建立事件處理常式的資訊,請參閱 < How to: Create a Project Server Event Handler and Log an Event

請參閱

參照

NotificationsEventReceiver 類別

NotificationsEventReceiver 成員

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

OnSending

其他資源

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