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
)
參數
contextInfo
類型:Microsoft.Office.Project.Server.Library.PSContextInfoProject Server 的內容資訊。
備註
使用SubjectLine和xmlBody屬性來取得傳送通知的內容。若要變更的通知內容,建立OnSending前的事件處理常式。Notification類別列出警告與提醒。
如需建立事件處理常式的資訊,請參閱 < How to: Create a Project Server Event Handler and Log an Event。
請參閱
參照
Microsoft.Office.Project.Server.Events 命名空間